HMSwitch constructor
const
HMSwitch({
- bool disabled = false,
- Duration? duration,
- String? onLabel,
- String? offLabel,
- String? label,
- Color? borderColor,
- Widget? iconOn,
- Widget? iconOff,
- bool reversed = false,
- Color? color,
- TextStyle? labelTextStyle,
- HMSwitchSize? size,
- HMRadius? radius,
- required bool value,
- required void onChange(),
- Key? key,
Implementation
const HMSwitch({
this.disabled = false,
this.hidden = false,
this.duration,
this.onLabel,
this.offLabel,
this.label,
this.borderColor,
this.iconOn,
this.iconOff,
this.reversed = false,
this.color,
this.labelTextStyle,
this.size,
this.radius,
required this.value,
required this.onChange,
super.key,
});