ToggleButtonThemeData class
Theme data for ToggleButton widgets.
This class defines the styles for toggle buttons in their checked and unchecked states.
- Mixed-in types
- Annotations
Constructors
- ToggleButtonThemeData({ButtonStyle? checkedButtonStyle, ButtonStyle? uncheckedButtonStyle})
-
Creates toggle button theme data.
const
- ToggleButtonThemeData.standard(FluentThemeData theme)
-
Creates the standard ToggleButtonThemeData based on the given
theme.factory
Properties
- checkedButtonStyle → ButtonStyle?
-
The style applied when the toggle button is checked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uncheckedButtonStyle → ButtonStyle?
-
The style applied when the toggle button is unchecked.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
ToggleButtonThemeData? other) → ToggleButtonThemeData - Merges this ToggleButtonThemeData with another, with the other taking precedence.
-
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.
inherited
Static Methods
-
lerp(
ToggleButtonThemeData? a, ToggleButtonThemeData? b, double t) → ToggleButtonThemeData - Linearly interpolates between two ToggleButtonThemeData objects.