IconButtonThemeData class
A ButtonStyle that overrides the default appearance of IconButtons when it's used with the IconButton, the IconButtonTheme or the overall Theme's ThemeData.iconButtonTheme.
The IconButton will be affected by IconButtonTheme and IconButtonThemeData only if ThemeData.useMaterial3 is set to true; otherwise, IconTheme will be used.
The style's properties override IconButton's default style. Only the style's non-null property values or resolved non-null WidgetStateProperty values are used.
See also:
- IconButtonTheme, the theme which is configured with this class.
- IconButton.styleFrom, which converts simple values into a ButtonStyle that's consistent with IconButton's defaults.
- WidgetStateProperty.resolve, "resolve" a material state property to a simple value based on a set of WidgetStates.
- ThemeData.iconButtonTheme, which can be used to override the default ButtonStyle for IconButtons below the overall Theme.
- Mixed-in types
- Annotations
Constructors
- IconButtonThemeData({ButtonStyle? style})
-
Creates a IconButtonThemeData.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ButtonStyle?
-
Overrides for IconButton's default style if ThemeData.useMaterial3
is set to true.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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(
IconButtonThemeData? a, IconButtonThemeData? b, double t) → IconButtonThemeData? - Linearly interpolate between two icon button themes.