BasicSwitch constructor
BasicSwitch({
- Key? key,
- required bool value,
- Color? activeColor,
- Color? trackColor,
- Color thumbColor = Colors.white,
- ValueChanged<
bool> ? onChanged, - ValueWaitChanged<
bool> ? onWaitChanged,
Implementation
BasicSwitch({
super.key,
required super.value,
Color? activeColor,
Color? trackColor,
Color thumbColor = Colors.white,
super.onChanged,
super.onWaitChanged,
}) : super(
builder: (bool value, onChanged) => XSwitch(
activeColor: activeColor ?? GlobalConfig().currentColor,
trackColor: trackColor,
thumbColor: thumbColor,
value: value,
onChanged: onChanged));