MacosIconThemeData class

Defines the color, opacity, and size of icons.

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

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

Mixed in types

Constructors

MacosIconThemeData({Color? color, double? opacity, double? size})
Creates an icon theme data.
const
MacosIconThemeData.fallback()
Creates an icon theme with some reasonable default values.
const

Properties

color Color?
The default color for icons.
final
hashCode int
The hash code for this object.
no setteroverride
isConcrete bool
Whether all the properties of this object are non-null.
no setter
opacity double?
An opacity to apply to both explicit and default icon colors.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
The default size for icons.
final

Methods

copyWith({Color? color, double? opacity, double? size}) MacosIconThemeData
Creates a copy of this icon theme but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(MacosIconThemeData? other) MacosIconThemeData
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) MacosIconThemeData
Called by MacosIconTheme.of to convert this instance to an MacosIconThemeData that fits the given BuildContext.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(MacosIconThemeData? a, MacosIconThemeData? b, double t) MacosIconThemeData
Linearly interpolate between two icon theme data objects.