SmoothSwitch constructor

const SmoothSwitch({
  1. required bool value,
  2. required ValueChanged<bool> onChanged,
  3. Size? size,
  4. EdgeInsetsGeometry? padding,
  5. Color? thumbActiveColor,
  6. Color? thumbInactiveColor,
  7. Color? backgroundActiveColor,
  8. Color? backgroundInactiveColor,
  9. Key? key,
})

Implementation

const SmoothSwitch({
  required this.value,
  required this.onChanged,
  this.size,
  this.padding,
  this.thumbActiveColor,
  this.thumbInactiveColor,
  this.backgroundActiveColor,
  this.backgroundInactiveColor,
  super.key,
});