MUISwitch constructor

const MUISwitch({
  1. Key? key,
  2. bool checked = false,
  3. ValueChanged<bool>? onChanged,
  4. double width = 40,
  5. double height = 20,
  6. double circleSize = 18,
  7. Duration animationDuration = Durations.short3,
  8. Curve animationCurve = Curves.easeInOut,
  9. Color onStateCol = Colors.white,
  10. Color offStateCol = const Color.fromARGB(255, 39, 39, 42),
})

Implementation

const MUISwitch({
  super.key,
  this.checked = false,
  this.onChanged,
  this.width = 40,
  this.height = 20,
  this.circleSize = 18,
  this.animationDuration = Durations.short3,
  this.animationCurve = Curves.easeInOut,
  this.onStateCol = Colors.white,
  this.offStateCol = const Color.fromARGB(255, 39, 39, 42),
});