WOISwitchButton constructor

const WOISwitchButton({
  1. Key? key,
  2. WOISwitchStyleModel? activeSwitchStyle,
  3. WOISwitchStyleModel? inActiveSwitchStyle,
  4. double? trackHeight = 35,
  5. double? trackWidth = 70,
  6. double thumbSize = 25,
  7. EdgeInsetsGeometry? thumbMargin,
  8. required bool value,
  9. required ValueChanged<bool> onChanged,
  10. double trackBorderRadius = 100,
  11. double thumbBorderRadius = 100,
})

Implementation

const WOISwitchButton({
  super.key,
  this.activeSwitchStyle,
  this.inActiveSwitchStyle,
  this.trackHeight = 35,
  this.trackWidth = 70,
  this.thumbSize = 25,
  this.thumbMargin,
  required this.value,
  required this.onChanged,
  this.trackBorderRadius = 100,
  this.thumbBorderRadius = 100,
});