bind method

CellCupertinoSwitch bind({
  1. ValueCell<bool>? enabled,
  2. MutableCell<bool>? value,
  3. ValueCell<Color?>? activeColor,
  4. ValueCell<Color?>? trackColor,
  5. ValueCell<Color?>? thumbColor,
  6. ValueCell<bool?>? applyTheme,
  7. ValueCell<Color?>? focusColor,
  8. ValueCell<Color?>? onLabelColor,
  9. ValueCell<Color?>? offLabelColor,
  10. ValueCell<FocusNode?>? focusNode,
  11. ValueCell<void Function(bool)?>? onFocusChange,
  12. ValueCell<bool>? autofocus,
  13. 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,
    );