MUISwitch constructor
const
MUISwitch({
- Key? key,
- bool checked = false,
- ValueChanged<
bool> ? onChanged, - double width = 40,
- double height = 20,
- double circleSize = 18,
- Duration animationDuration = Durations.short3,
- Curve animationCurve = Curves.easeInOut,
- Color onStateCol = Colors.white,
- 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),
});