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
The Unicode code point at which this icon is stored in the icon font.
final
fontFamily → String?
The font family from which the glyph for the codePoint will be selected.
final
fontFamilyFallback → List<String>?
The ordered list of font families to fall back on when a glyph cannot be found in a higher priority font family.
final
The name of the package from which the font family is included.
final
The hash code for this object.
no setteroverride
Whether this icon should be automatically mirrored in right-to-left environments.
final
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
A string representation of this object.
override
Operators
operator ==(Object other)→ bool
The equality operator.
override