bind method

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