MySwitch constructor

MySwitch({
  1. Key? key,
  2. double? SwitchHeight,
  3. double? SwitchWidth,
  4. Color? BackLayerColorOn,
  5. required Color? BackLayerColorOff,
  6. required Color? BallColorOff,
  7. required Color? BallColorOn,
  8. Icon? OffIconBall,
  9. Icon? ONIconBall,
  10. double? SwitchHeight2,
  11. double? SwitchWidth2,
  12. Color? colorcmaker2,
  13. dynamic onChange(
    1. bool value
    )?,
  14. Widget? child,
})

Implementation

MySwitch({
  super.key,
  this.SwitchHeight,
  this.SwitchWidth,
  this.BackLayerColorOn,
  required this.BackLayerColorOff,
  required this.BallColorOff,
  required this.BallColorOn,
  this.OffIconBall,
  this.ONIconBall,
  this.SwitchHeight2,
  this.SwitchWidth2,
  this.colorcmaker2,
  this.onChange,
  this.child,
});