IconData class - widgets library (original) (raw)

A description of an icon fulfilled by a font glyph.

See Icons for a number of predefined icons available for material design applications.

In release builds, the Flutter tool will tree shake out of bundled fonts the code points (or instances of IconData) which are not referenced from Dart app code. See the staticIconProvider annotation for more details.

Annotations

Constructors

IconData(int codePoint, {String? fontFamily, String? fontPackage, bool matchTextDirection = false, List<String>? fontFamilyFallback})

Creates icon data.

const

Properties

codePointint

The Unicode code point at which this icon is stored in the icon font.

final

fontFamilyString?

The font family from which the glyph for the codePoint will be selected.

final

fontFamilyFallbackList<String>?

The ordered list of font families to fall back on when a glyph cannot be found in a higher priority font family.

final

fontPackageString?

The name of the package from which the font family is included.

final

hashCodeint

The hash code for this object.

no setteroverride

matchTextDirectionbool

Whether this icon should be automatically mirrored in right-to-left environments.

final

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

override

Operators

operator ==(Object other)→ bool

The equality operator.

override