PushButtonThemeData class
A style that overrides the default appearance of PushButtons when it's used with PushButtonTheme or with the overall MacosTheme's MacosThemeData.pushButtonTheme.
See also:
- PushButtonTheme, the theme which is configured with this class.
- MacosThemeData.pushButtonTheme, which can be used to override the default style for PushButtons below the overall MacosTheme.
- Mixed in types
Constructors
- PushButtonThemeData({Color? color, Color? disabledColor, Color? secondaryColor})
-
Creates a PushButtonThemeData.
const
Properties
- color → Color?
-
The default background color for PushButton
final
- disabledColor → Color?
-
The default disabled color for PushButton
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color?
-
The default secondary color (e.g. Cancel/Go back buttons) for PushButton
final
Methods
-
copyWith(
{Color? color, Color? disabledColor, Color? secondaryColor}) → PushButtonThemeData - Copies this PushButtonThemeData into another.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
PushButtonThemeData? other) → PushButtonThemeData - Merges this PushButtonThemeData with another.
-
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(
PushButtonThemeData a, PushButtonThemeData b, double t) → PushButtonThemeData - Linearly interpolate between two PushButtonThemeData.