PlatformSwitchData class final

Implementers

Constructors

PlatformSwitchData({bool? value, ValueChanged<bool>? onChanged, 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, Key? widgetKey})
isEnabled is a convenience property for setting onChanged == null automatically. activeThumbColor is used for thumbColor property of CupertinoSwitch. mouseCursor is not proxied through a WidgetStateProperty for Switch. It is defined by matching the same template/behaviour.
const

Properties

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

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