Defines the color, opacity, and size of icons.

Used by IconTheme to control the color, opacity, and size of icons in a widget subtree.

To obtain the current icon theme, use IconTheme.of. To convert an icon theme to a version with all the fields filled in, use new IconThemeData.fallback.

Constructors

IconThemeData({Color color, double opacity, double size })
Creates an icon theme data. [...]
const
IconThemeData.fallback()
Creates an icon them with some reasonable default values. [...]
const

Properties

color Color
The default color for icons.
final
hashCode int
The hash code for this object. [...]
read-only
isConcrete bool
Whether all the properties of this object are non-null.
read-only
opacity double
An opacity to apply to both explicit and default icon colors.
read-only
size double
The default size for icons.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({Color color, double opacity, double size }) IconThemeData
Creates a copy of this icon theme but with the given fields replaced with the new values.
merge(IconThemeData other) IconThemeData
Returns a new icon theme that matches this icon theme but with some values replaced by the non-null parameters of the given icon theme. If the given icon theme is null, simply returns this icon theme.
toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(other) bool
The equality operator. [...]

Static Methods

lerp(IconThemeData begin, IconThemeData end, double t) IconThemeData
Linearly interpolate between two icon theme data objects.