CupertinoSwitchData class final
- Inheritance
-
- Object
- PlatformSwitchData
- CupertinoSwitchData
Constructors
-
CupertinoSwitchData({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, bool? applyTheme, Color? onLabelColor, Color? offLabelColor}) -
isEnabledis a convenience property for settingonChanged== null automatically.activeThumbColoris synonymous withthumbColorproperty of CupertinoSwitch.const
Properties
- activeThumbColor → Color?
-
finalinherited
-
activeThumbImage
→ ImageProvider<
Object> ? -
finalinherited
- activeTrackColor → Color?
-
finalinherited
- applyTheme → bool?
-
final
- autofocus → bool
-
finalinherited
- dragStartBehavior → DragStartBehavior
-
finalinherited
- focusColor → Color?
-
finalinherited
- focusNode → FocusNode?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveThumbColor → Color?
-
finalinherited
-
inactiveThumbImage
→ ImageProvider<
Object> ? -
finalinherited
- inactiveTrackColor → Color?
-
finalinherited
- isEnabled → bool
-
finalinherited
-
mouseCursor
→ WidgetStateProperty<
MouseCursor> ? -
finalinherited
- offLabelColor → Color?
-
final
- onActiveThumbImageError → ImageErrorListener?
-
finalinherited
-
onChanged
→ ValueChanged<
bool> ? -
finalinherited
-
onFocusChange
→ ValueChanged<
bool> ? -
finalinherited
- onInactiveThumbImageError → ImageErrorListener?
-
finalinherited
- onLabelColor → Color?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
thumbIcon
→ WidgetStateProperty<
Icon?> ? -
finalinherited
-
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