FSwitch constructor

FSwitch({
  1. Key? key,
  2. required ValueChanged<bool> onChanged,
  3. bool open = false,
  4. double width = 59.23,
  5. double? height,
  6. double? offset,
  7. double? childOffset,
  8. Widget? closeChild,
  9. Widget? openChild,
  10. Color? color,
  11. Color? openColor,
  12. Color? sliderColor,
  13. Widget? sliderChild,
  14. bool enable = true,
  15. Color? shadowColor,
  16. Offset? shadowOffset,
  17. double shadowBlur = 0.0,
})

Implementation

FSwitch({
  Key? key,
  required this.onChanged,
  this.open = false,
  this.width = 59.23,
  this.height,
  this.offset,
  this.childOffset,
  this.closeChild,
  this.openChild,
  this.color,
  this.openColor,
  this.sliderColor,
  this.sliderChild,
  this.enable = true,
  this.shadowColor,
  this.shadowOffset,
  this.shadowBlur = 0.0,
})  : super(key: key);