PlatformSwitch constructor
PlatformSwitch({
- Key? key,
- Key? widgetKey,
- required bool value,
- required void onChanged()?,
- DragStartBehavior? dragStartBehavior,
- Color? activeColor,
- PlatformBuilder<
MaterialSwitchData> ? material, - PlatformBuilder<
CupertinoSwitchData> ? cupertino,
Implementation
PlatformSwitch({
super.key,
this.widgetKey,
required this.value,
required this.onChanged,
this.dragStartBehavior,
this.activeColor,
this.material,
this.cupertino,
});