ModulaSwitch constructor
const
ModulaSwitch({
- required bool value,
- required ValueChanged<
bool> onChanged, - Key? key,
- String? labelOn,
- String? labelOff,
- IconData? iconOn,
- IconData? iconOff,
- Color activeColor = Colors.blue,
- Color inactiveColor = Colors.grey,
- bool enableHaptic = true,
- double width = 70,
- double height = 32,
- bool reverseLabelPosition = false,
- Color? iconColor,
- IconData? thumbIconOn,
- IconData? thumbIconOff,
- Color? thumbIconColor,
Implementation
const ModulaSwitch({
required this.value,
required this.onChanged,
super.key,
this.labelOn,
this.labelOff,
this.iconOn,
this.iconOff,
this.activeColor = Colors.blue,
this.inactiveColor = Colors.grey,
this.enableHaptic = true,
this.width = 70,
this.height = 32,
this.reverseLabelPosition = false,
this.iconColor,
this.thumbIconOn,
this.thumbIconOff,
this.thumbIconColor,
});