CellSwitch constructor

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

Implementation

const CellSwitch({
  super.key,
  this.enabled = const ValueCell.value(true),
  required this.value,
  this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.activeThumbImage,
  this.onActiveThumbImageError,
  this.inactiveThumbImage,
  this.onInactiveThumbImageError,
  this.thumbColor,
  this.trackColor,
  this.trackOutlineColor,
  this.trackOutlineWidth,
  this.thumbIcon,
  this.materialTapTargetSize,
  this.dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
  this.mouseCursor,
  this.focusColor,
  this.hoverColor,
  this.overlayColor,
  this.splashRadius,
  this.focusNode,
  this.onFocusChange,
  this.autofocus = const ValueCell.value(false),
});