StacSwitch constructor

const StacSwitch({
  1. StacSwitchType? switchType,
  2. bool? value,
  3. StacAction? onChanged,
  4. bool? autofocus,
  5. StacColor? activeThumbColor,
  6. StacColor? activeTrackColor,
  7. StacColor? focusColor,
  8. StacColor? hoverColor,
  9. StacColor? inactiveThumbColor,
  10. StacColor? inactiveTrackColor,
  11. StacColor? onLabelColor,
  12. StacColor? offLabelColor,
  13. double? splashRadius,
  14. StacDragStartBehavior? dragStartBehavior,
  15. StacColor? overlayColor,
  16. StacColor? thumbColor,
  17. StacColor? trackColor,
  18. StacMaterialTapTargetSize? materialTapTargetSize,
  19. StacColor? trackOutlineColor,
  20. double? trackOutlineWidth,
  21. StacWidget? thumbIcon,
  22. String? inactiveThumbImage,
  23. String? activeThumbImage,
  24. bool? applyTheme,
  25. bool? applyCupertinoTheme,
})

Creates a StacSwitch.

Implementation

const StacSwitch({
  this.switchType,
  this.value,
  this.onChanged,
  this.autofocus,
  this.activeThumbColor,
  this.activeTrackColor,
  this.focusColor,
  this.hoverColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  this.onLabelColor,
  this.offLabelColor,
  this.splashRadius,
  this.dragStartBehavior,
  this.overlayColor,
  this.thumbColor,
  this.trackColor,
  this.materialTapTargetSize,
  this.trackOutlineColor,
  this.trackOutlineWidth,
  this.thumbIcon,
  this.inactiveThumbImage,
  this.activeThumbImage,
  this.applyTheme,
  this.applyCupertinoTheme,
});