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 of. To convert an icon theme to a version with all the fields filled in, use fallback.
Static Methods
-
lerp(
IconThemeData begin, IconThemeData end, double t) → IconThemeData -
Linearly interpolate between two icon theme data objects.
Constructors
- IconThemeData({Color color, double opacity, double size })
-
Creates an icon theme data.
const
Properties
- color → Color
-
The default color for icons.
read-only - hashCode → int
-
read-only
- opacity → double
-
An opacity to apply to both explicit and default icon colors.
read-only - size → double
-
The default size for icons.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
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.
-
fallback(
{Color color: const Color(0xFF000000), double opacity: 1.0, double size: 24.0 }) → IconThemeData -
Creates an icon theme that is identical to this icon theme but with any null fields filled in. Specific fallbacks can be given, but in their absence, this method defaults to black, fully opaque, and size 24.0.
-
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