bind method
LiveCupertinoSwitch
bind(
{ - ValueCell<bool>? enabled,
- MutableCell<bool>? value,
- Color? activeColor,
- Color? trackColor,
- Color? thumbColor,
- bool? applyTheme,
- Color? focusColor,
- Color? onLabelColor,
- Color? offLabelColor,
- FocusNode? focusNode,
- void onFocusChange(
- bool
)?,
- bool? autofocus,
- DragStartBehavior? dragStartBehavior,
})
Implementation
LiveCupertinoSwitch bind({
ValueCell<bool>? enabled,
MutableCell<bool>? value,
Color? activeColor,
Color? trackColor,
Color? thumbColor,
bool? applyTheme,
Color? focusColor,
Color? onLabelColor,
Color? offLabelColor,
FocusNode? focusNode,
void Function(bool)? onFocusChange,
bool? autofocus,
DragStartBehavior? dragStartBehavior,
}) =>
LiveCupertinoSwitch(
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,
);