SwitchDefaults class
Per-component design tokens for Switch.
Defaults for every Switch under a ConfigProvider.
The widget's own props, not its numbers — those are SwitchToken.
- Annotations
Constructors
- SwitchDefaults({ControlSize? size, bool? disabled})
-
Creates a SwitchDefaults.
const
Properties
- disabled → bool?
-
Whether switches are barred.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → ControlSize?
-
Which size switches take.
final
Methods
-
merge(
SwitchDefaults other) → SwitchDefaults -
This one with
other's fields laid over it, one field at a time. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited