ZwapSwitch constructor
const
ZwapSwitch({
- bool value = false,
- FutureOr onChange()?,
- double width = 56,
- double height = 32,
- double thumbPadding = 4,
- double draggingThumbExtent = 4.5,
- Color? activeColor,
- Gradient? activeGradient,
- Color? activeThumbColor,
- Gradient? activeThumbGradient,
- Color? color,
- Gradient? gradient,
- Color? thumbColor,
- Gradient? thumbGradient,
- double? borderRadiuns,
- Widget thumbChild()?,
- 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);