MaterialSwitchData class final

Inheritance

Constructors

MaterialSwitchData({bool? value, ValueChanged<bool>? onChanged, Key? widgetKey, bool isEnabled = true, Color? activeThumbColor, Color? activeTrackColor, Color? inactiveThumbColor, Color? inactiveTrackColor, Color? focusColor, ImageProvider<Object>? activeThumbImage, ImageErrorListener? onActiveThumbImageError, ImageProvider<Object>? inactiveThumbImage, ImageErrorListener? onInactiveThumbImageError, WidgetStateProperty<Color?>? trackOutlineColor, WidgetStateProperty<double?>? trackOutlineWidth, WidgetStateProperty<Icon?>? thumbIcon, DragStartBehavior dragStartBehavior = kDefaultDragStartBehavior, WidgetStateProperty<MouseCursor>? mouseCursor, FocusNode? focusNode, ValueChanged<bool>? onFocusChange, bool autofocus = kDefaultAutofocus, WidgetStateProperty<Color?>? thumbColor, WidgetStateProperty<Color?>? trackColor, WidgetStateProperty<Color?>? overlayColor, MaterialTapTargetSize? materialTapTargetSize, Color? hoverColor, double? splashRadius, EdgeInsetsGeometry? padding})
isEnabled is a convenience property for setting onChanged == null automatically. mouseCursor is not proxied through a WidgetStateProperty for Switch. It is defined by matching the same template/behaviour.
const

Properties

activeThumbColor Color?
finalinherited
activeThumbImage ImageProvider<Object>?
finalinherited
activeTrackColor Color?
finalinherited
autofocus bool
finalinherited
dragStartBehavior DragStartBehavior
finalinherited
focusColor Color?
finalinherited
focusNode FocusNode?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hoverColor Color?
final
inactiveThumbColor Color?
finalinherited
inactiveThumbImage ImageProvider<Object>?
finalinherited
inactiveTrackColor Color?
finalinherited
isEnabled bool
finalinherited
materialTapTargetSize MaterialTapTargetSize?
final
mouseCursor WidgetStateProperty<MouseCursor>?
finalinherited
onActiveThumbImageError ImageErrorListener?
finalinherited
onChanged ValueChanged<bool>?
finalinherited
onFocusChange ValueChanged<bool>?
finalinherited
onInactiveThumbImageError ImageErrorListener?
finalinherited
overlayColor WidgetStateProperty<Color?>?
final
padding EdgeInsetsGeometry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashRadius double?
final
thumbColor WidgetStateProperty<Color?>?
final
thumbIcon WidgetStateProperty<Icon?>?
finalinherited
trackColor WidgetStateProperty<Color?>?
final
trackOutlineColor WidgetStateProperty<Color?>?
finalinherited
trackOutlineWidth WidgetStateProperty<double?>?
finalinherited
value bool?
finalinherited
widgetKey Key?
finalinherited

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