StacSwitch constructor
const
StacSwitch({
- StacSwitchType? switchType,
- bool? value,
- StacAction? onChanged,
- bool? autofocus,
- StacColor? activeThumbColor,
- StacColor? activeTrackColor,
- StacColor? focusColor,
- StacColor? hoverColor,
- StacColor? inactiveThumbColor,
- StacColor? inactiveTrackColor,
- StacColor? onLabelColor,
- StacColor? offLabelColor,
- double? splashRadius,
- StacDragStartBehavior? dragStartBehavior,
- StacColor? overlayColor,
- StacColor? thumbColor,
- StacColor? trackColor,
- StacMaterialTapTargetSize? materialTapTargetSize,
- StacColor? trackOutlineColor,
- double? trackOutlineWidth,
- StacWidget? thumbIcon,
- String? inactiveThumbImage,
- String? activeThumbImage,
- bool? applyTheme,
- 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,
});