bind method

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

Implementation

LiveSwitch bind({
  ValueCell<bool>? enabled,
  MutableCell<bool>? value,
  Color? activeColor,
  Color? activeTrackColor,
  Color? inactiveThumbColor,
  Color? inactiveTrackColor,
  ImageProvider<Object>? activeThumbImage,
  void Function(Object, StackTrace?)? onActiveThumbImageError,
  ImageProvider<Object>? inactiveThumbImage,
  void Function(Object, StackTrace?)? onInactiveThumbImageError,
  WidgetStateProperty<Color?>? thumbColor,
  WidgetStateProperty<Color?>? trackColor,
  WidgetStateProperty<Color?>? trackOutlineColor,
  WidgetStateProperty<double?>? trackOutlineWidth,
  WidgetStateProperty<Icon?>? thumbIcon,
  MaterialTapTargetSize? materialTapTargetSize,
  DragStartBehavior? dragStartBehavior,
  MouseCursor? mouseCursor,
  Color? focusColor,
  Color? hoverColor,
  WidgetStateProperty<Color?>? overlayColor,
  double? splashRadius,
  FocusNode? focusNode,
  void Function(bool)? onFocusChange,
  bool? autofocus,
}) =>
    LiveSwitch(
      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,
    );