BetterSwitch constructor

const BetterSwitch({
  1. Key? key,
  2. ValueChanged<bool>? onChanged,
  3. Future<bool> onUpdateChange()?,
  4. bool defaultValue = false,
  5. bool? loading = false,
  6. double? width,
  7. double? height,
  8. Color? ballBackgroundColor,
  9. Color? inactiveBackgroundColor,
  10. Color? activeBackgroundColor,
  11. EdgeInsetsGeometry? padding,
  12. double? loadingSize,
  13. double? loadingStrokeWidth,
  14. Color? loadingColor,
  15. Widget? ballWidget,
  16. 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,
});