CustomSwitchButton constructor

const CustomSwitchButton({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. String? activeText,
  5. String? inactiveText,
  6. Color? activeColor,
  7. Color? inactiveColor,
  8. Color? thumbColor,
  9. double? width,
  10. double? height,
  11. double? borderRadius,
  12. bool showLabel = true,
  13. EdgeInsetsGeometry? margin,
  14. EdgeInsetsGeometry? padding,
  15. bool isDisabled = false,
})

Implementation

const CustomSwitchButton({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeText,
  this.inactiveText,
  this.activeColor,
  this.inactiveColor,
  this.thumbColor,
  this.width,
  this.height,
  this.borderRadius,
  this.showLabel = true,
  this.margin,
  this.padding,
  this.isDisabled = false,
});