bind method
LiveSwitch
bind({
- ValueCell<
bool> ? enabled, - MutableCell<
bool> ? value, - Color? activeColor,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- ImageProvider<
Object> ? activeThumbImage, - void onActiveThumbImageError()?,
- ImageProvider<
Object> ? inactiveThumbImage, - void onInactiveThumbImageError()?,
- WidgetStateProperty<
Color?> ? thumbColor, - WidgetStateProperty<
Color?> ? trackColor, - WidgetStateProperty<
Color?> ? trackOutlineColor, - WidgetStateProperty<
double?> ? trackOutlineWidth, - WidgetStateProperty<
Icon?> ? thumbIcon, - MaterialTapTargetSize? materialTapTargetSize,
- DragStartBehavior? dragStartBehavior,
- MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- FocusNode? focusNode,
- void onFocusChange()?,
- bool? autofocus,
Implementation
LiveSwitch bind({
ValueCell<bool>? enabled,
MutableCell<bool>? value,
Color? activeColor,
Color? activeTrackColor,
Color? inactiveThumbColor,
Color? inactiveTrackColor,
ImageProvider<Object>? activeThumbImage,
void Function(Object, StackTrace?)? onActiveThumbImageError,
ImageProvider<Object>? inactiveThumbImage,
void Function(Object, StackTrace?)? onInactiveThumbImageError,
WidgetStateProperty<Color?>? thumbColor,
WidgetStateProperty<Color?>? trackColor,
WidgetStateProperty<Color?>? trackOutlineColor,
WidgetStateProperty<double?>? trackOutlineWidth,
WidgetStateProperty<Icon?>? thumbIcon,
MaterialTapTargetSize? materialTapTargetSize,
DragStartBehavior? dragStartBehavior,
MouseCursor? mouseCursor,
Color? focusColor,
Color? hoverColor,
WidgetStateProperty<Color?>? overlayColor,
double? splashRadius,
FocusNode? focusNode,
void Function(bool)? onFocusChange,
bool? autofocus,
}) =>
LiveSwitch(
enabled: enabled ?? this.enabled,
value: value ?? this.value,
activeColor: activeColor ?? this.activeColor,
activeTrackColor: activeTrackColor ?? this.activeTrackColor,
inactiveThumbColor: inactiveThumbColor ?? this.inactiveThumbColor,
inactiveTrackColor: inactiveTrackColor ?? this.inactiveTrackColor,
activeThumbImage: activeThumbImage ?? this.activeThumbImage,
onActiveThumbImageError:
onActiveThumbImageError ?? this.onActiveThumbImageError,
inactiveThumbImage: inactiveThumbImage ?? this.inactiveThumbImage,
onInactiveThumbImageError:
onInactiveThumbImageError ?? this.onInactiveThumbImageError,
thumbColor: thumbColor ?? this.thumbColor,
trackColor: trackColor ?? this.trackColor,
trackOutlineColor: trackOutlineColor ?? this.trackOutlineColor,
trackOutlineWidth: trackOutlineWidth ?? this.trackOutlineWidth,
thumbIcon: thumbIcon ?? this.thumbIcon,
materialTapTargetSize:
materialTapTargetSize ?? this.materialTapTargetSize,
dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
mouseCursor: mouseCursor ?? this.mouseCursor,
focusColor: focusColor ?? this.focusColor,
hoverColor: hoverColor ?? this.hoverColor,
overlayColor: overlayColor ?? this.overlayColor,
splashRadius: splashRadius ?? this.splashRadius,
focusNode: focusNode ?? this.focusNode,
onFocusChange: onFocusChange ?? this.onFocusChange,
autofocus: autofocus ?? this.autofocus,
);