SwitchProps class abstract final

Flutter Switch, scaled to its box (59 px wide is Flutter's own size).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

activeThumbBorderColor → const PropDef<Color?>
The thumb's border color when on, drawn inside its edge on a filled track (fillTrack). Material's switch has no thumb border, so a switch with one is drawn as a plain toggle.
activeThumbColor → const PropDef<Color?>
activeTrackColor → const PropDef<Color?>
activeTrackOutlineColor → const PropDef<Color?>
trackOutlineColor when on.
autofocus → const PropDef<bool>
controlled → const PropDef<bool>
It shows only its value: a tap reports the change (changed) and the reactions set the value, else it stays (a checkout rule that refuses).
enabled → const PropDef<bool>
Off, it shows its value but can't be toggled (dimmed, as Flutter's).
fillTrack → const PropDef<bool>
The track is stretched to the box (no padding or tap target around it).
focusColor → const PropDef<Color?>
hoverColor → const PropDef<Color?>
inactiveThumbBorderColor → const PropDef<Color?>
The thumb's border color when off (see activeThumbBorderColor).
inactiveThumbColor → const PropDef<Color?>
inactiveTrackColor → const PropDef<Color?>
inactiveTrackOutlineColor → const PropDef<Color?>
trackOutlineColor when off.
spec → const WidgetSpec
splashRadius → const PropDef<double?>
thumbBorderWidth → const PropDef<double?>
The thumb border's width; null is 1.
thumbInset → const PropDef<double?>
The gap between the thumb and the edges of a filled track: the thumb is the height less twice this. With one (or thumbShadows) the switch is a plain toggle whose thumb stays round at any size; null keeps Material's switch scaled to the box.
thumbRadius → const PropDef<double?>
The thumb's corner radius: null is round; a square switch sets a small one. With it the switch is a plain toggle.
thumbShadows → const PropDef<List<Effect>>
Drop shadows the thumb casts on a filled track (fillTrack). Material's switch has none, so a switch with one is drawn as a plain toggle (see thumbInset).
toggleCurve → const PropDef<AnimationCurve>
A plain toggle's slide easing on; off eases along it flipped.
toggleDurationMs → const PropDef<int>
How long a plain toggle's thumb takes to slide, in milliseconds.
trackOutlineWidth → const PropDef<double?>
trackRadius → const PropDef<double?>
The track's corner radius: null is a pill (half its height); a square switch sets a small one. With it the switch is a plain toggle.
uniformThumb → const PropDef<bool>
The thumb keeps one size on and off (thumbIcon set).
value → const PropDef<bool>