bind method
CellCupertinoSwitch
bind({
- ValueCell<
bool> ? enabled, - MutableCell<
bool> ? value, - ValueCell<
Color?> ? activeColor, - ValueCell<
Color?> ? trackColor, - ValueCell<
Color?> ? thumbColor, - ValueCell<
bool?> ? applyTheme, - ValueCell<
Color?> ? focusColor, - ValueCell<
Color?> ? onLabelColor, - ValueCell<
Color?> ? offLabelColor, - ValueCell<
FocusNode?> ? focusNode, - ValueCell<
void Function(bool)?> ? onFocusChange, - ValueCell<
bool> ? autofocus, - ValueCell<
DragStartBehavior> ? dragStartBehavior,
Implementation
CellCupertinoSwitch bind({
ValueCell<bool>? enabled,
MutableCell<bool>? value,
ValueCell<Color?>? activeColor,
ValueCell<Color?>? trackColor,
ValueCell<Color?>? thumbColor,
ValueCell<bool?>? applyTheme,
ValueCell<Color?>? focusColor,
ValueCell<Color?>? onLabelColor,
ValueCell<Color?>? offLabelColor,
ValueCell<FocusNode?>? focusNode,
ValueCell<void Function(bool)?>? onFocusChange,
ValueCell<bool>? autofocus,
ValueCell<DragStartBehavior>? dragStartBehavior,
}) =>
CellCupertinoSwitch(
enabled: enabled ?? this.enabled,
value: value ?? this.value,
activeColor: activeColor ?? this.activeColor,
trackColor: trackColor ?? this.trackColor,
thumbColor: thumbColor ?? this.thumbColor,
applyTheme: applyTheme ?? this.applyTheme,
focusColor: focusColor ?? this.focusColor,
onLabelColor: onLabelColor ?? this.onLabelColor,
offLabelColor: offLabelColor ?? this.offLabelColor,
focusNode: focusNode ?? this.focusNode,
onFocusChange: onFocusChange ?? this.onFocusChange,
autofocus: autofocus ?? this.autofocus,
dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
);