ControlDefaults class
Defaults for Checkbox, Radio, Switch, Slider and ColorSwatchPicker.
Constructors
- ControlDefaults({SizeToken? size, ControlVariant? variant, RadiusToken? radius})
-
Creates control defaults.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- radius → RadiusToken?
-
Corner radius of Checkbox.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → SizeToken?
-
Size of Switch, Slider and ColorSwatchPicker; Checkbox and Radio have one fixed size.
final
- variant → ControlVariant?
-
Visual style of Checkbox and Radio.
final
Methods
-
copyWith(
{SizeToken? size, ControlVariant? variant, RadiusToken? radius}) → ControlDefaults - Returns a copy with the given fields replaced.
-
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.
override