SFToggle constructor

const SFToggle({
  1. Key? key,
  2. double size = 50,
  3. bool initialValue = false,
  4. Duration? animationDuration,
  5. Color? disabledBackgroundColor,
  6. Color? enabledBackgroundColor,
  7. Color? disabledTrackColor,
  8. Color? enabledTrackColor,
  9. required ValueChanged<bool?> onChanged,
})

Implementation

const SFToggle({
  super.key,
  this.size = 50,
  this.initialValue  = false,
  this.animationDuration,
  this.disabledBackgroundColor,
  this.enabledBackgroundColor,
  this.disabledTrackColor,
  this.enabledTrackColor,
  required this.onChanged,
});