BetterSwitch constructor
const
BetterSwitch({
- Key? key,
- ValueChanged<
bool> ? onChanged, - Future<
bool> onUpdateChange()?, - bool defaultValue = false,
- bool? loading = false,
- double? width,
- double? height,
- Color? ballBackgroundColor,
- Color? inactiveBackgroundColor,
- Color? activeBackgroundColor,
- EdgeInsetsGeometry? padding,
- double? loadingSize,
- double? loadingStrokeWidth,
- Color? loadingColor,
- Widget? ballWidget,
- bool? disabled = false,
Implementation
const BetterSwitch({
super.key,
this.onChanged,
this.onUpdateChange,
this.defaultValue = false,
this.loading = false,
this.width,
this.height,
this.ballBackgroundColor,
this.inactiveBackgroundColor,
this.activeBackgroundColor,
this.padding,
this.loadingSize,
this.loadingStrokeWidth,
this.loadingColor,
this.ballWidget,
this.disabled = false,
});