CustomSwitch constructor
const
CustomSwitch({
- bool isOpen = true,
- ValueChanged<
bool> ? onChange, - bool labelRight = false,
- bool? isInnerStyle = false,
- Widget label = const SizedBox(),
- bool? enableFirstCallBack = false,
- double? margin = 0,
- double scale = 1,
- Color? activeColor,
- Color? activeTrackColor,
- Color? inactiveThumbColor,
- Color? inactiveTrackColor,
- Key? key,
Implementation
const CustomSwitch({
this.isOpen=true,
this.onChange,
this.labelRight=false,
this.isInnerStyle = false,
this.label = const SizedBox(),
this.enableFirstCallBack = false,
this.margin = 0,
this.scale=1,
this.activeColor,
this.activeTrackColor,
this.inactiveThumbColor,
this.inactiveTrackColor,
Key? key}) : super(key: key);