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