HMSwitch constructor

const HMSwitch({
  1. bool disabled = false,
  2. bool hidden = false,
  3. Duration? duration,
  4. String? onLabel,
  5. String? offLabel,
  6. String? label,
  7. Color? borderColor,
  8. Widget? iconOn,
  9. Widget? iconOff,
  10. bool reversed = false,
  11. Color? color,
  12. TextStyle? labelTextStyle,
  13. HMSwitchSize? size,
  14. HMRadius? radius,
  15. required bool value,
  16. required void onChange(
    1. bool
    ),
  17. 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,
});