ZwapSwitch constructor

const ZwapSwitch({
  1. bool value = false,
  2. FutureOr onChange(
    1. bool
    )?,
  3. double width = 56,
  4. double height = 32,
  5. double thumbPadding = 4,
  6. double draggingThumbExtent = 4.5,
  7. Color? activeColor,
  8. Gradient? activeGradient,
  9. Color? activeThumbColor,
  10. Gradient? activeThumbGradient,
  11. Color? color,
  12. Gradient? gradient,
  13. Color? thumbColor,
  14. Gradient? thumbGradient,
  15. double? borderRadiuns,
  16. Widget thumbChild(
    1. BuildContext,
    2. bool
    )?,
  17. Key? key,
})

Implementation

const ZwapSwitch({
  this.value = false,
  this.onChange,
  this.width = 56,
  this.height = 32,
  this.thumbPadding = 4,
  this.draggingThumbExtent = 4.5,
  this.activeColor,
  this.activeGradient,
  this.activeThumbColor,
  this.activeThumbGradient,
  this.color,
  this.gradient,
  this.thumbColor,
  this.thumbGradient,
  this.borderRadiuns,
  this.thumbChild,
  Key? key,
}) : super(key: key);