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