MaterialSwitchData class Null safety

Constructors

MaterialSwitchData({Key? widgetKey, bool? value, void onChanged(bool)?, Color? activeColor, DragStartBehavior? dragStartBehavior, Color? activeTrackColor, Color? inactiveThumbColor, Color? inactiveTrackColor, ImageProvider<Object>? activeThumbImage, ImageProvider<Object>? inactiveThumbImage, MaterialTapTargetSize? materialTapTargetSize, Color? focusColor, Color? hoverColor, FocusNode? focusNode, bool? autofocus, ImageErrorListener? onActiveThumbImageError, ImageErrorListener? onInactiveThumbImageError, MouseCursor? mouseCursor, MaterialStateProperty<Color?>? overlayColor, double? splashRadius, MaterialStateProperty<Color?>? thumbColor, MaterialStateProperty<Color?>? trackColor})

Properties

activeColor Color?
final, inherited
activeThumbImage ImageProvider<Object>?
final
activeTrackColor Color?
final
autofocus bool?
final
dragStartBehavior DragStartBehavior?
final, inherited
focusColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hoverColor Color?
final
inactiveThumbColor Color?
final
inactiveThumbImage ImageProvider<Object>?
final
inactiveTrackColor Color?
final
materialTapTargetSize MaterialTapTargetSize?
final
mouseCursor MouseCursor?
final
onActiveThumbImageError ImageErrorListener?
final
onChanged → (void Function?(bool)?)
final, inherited
onInactiveThumbImageError ImageErrorListener?
final
overlayColor MaterialStateProperty<Color?>?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splashRadius double?
final
thumbColor MaterialStateProperty<Color?>?
final
trackColor MaterialStateProperty<Color?>?
final
value bool?
final, inherited
widgetKey Key?
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited