bind method

CellSwitch bind({
  1. ValueCell<bool>? enabled,
  2. MutableCell<bool>? value,
  3. ValueCell<Color?>? activeColor,
  4. ValueCell<Color?>? activeTrackColor,
  5. ValueCell<Color?>? inactiveThumbColor,
  6. ValueCell<Color?>? inactiveTrackColor,
  7. ValueCell<ImageProvider<Object>?>? activeThumbImage,
  8. ValueCell<void Function(Object, StackTrace?)?>? onActiveThumbImageError,
  9. ValueCell<ImageProvider<Object>?>? inactiveThumbImage,
  10. ValueCell<void Function(Object, StackTrace?)?>? onInactiveThumbImageError,
  11. ValueCell<WidgetStateProperty<Color?>?>? thumbColor,
  12. ValueCell<WidgetStateProperty<Color?>?>? trackColor,
  13. ValueCell<WidgetStateProperty<Color?>?>? trackOutlineColor,
  14. ValueCell<WidgetStateProperty<double?>?>? trackOutlineWidth,
  15. ValueCell<WidgetStateProperty<Icon?>?>? thumbIcon,
  16. ValueCell<MaterialTapTargetSize?>? materialTapTargetSize,
  17. ValueCell<DragStartBehavior>? dragStartBehavior,
  18. ValueCell<MouseCursor?>? mouseCursor,
  19. ValueCell<Color?>? focusColor,
  20. ValueCell<Color?>? hoverColor,
  21. ValueCell<WidgetStateProperty<Color?>?>? overlayColor,
  22. ValueCell<double?>? splashRadius,
  23. ValueCell<FocusNode?>? focusNode,
  24. ValueCell<void Function(bool)?>? onFocusChange,
  25. 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,
    );