JsonCupertinoSwitchBuilderModel constructor
const
JsonCupertinoSwitchBuilderModel(
- Map<
String, dynamic> args, { - Color? activeColor,
- AutovalidateMode? autovalidateMode,
- DragStartBehavior? dragStartBehavior,
- bool enabled = true,
- String? label,
- void onChanged()?,
- void onSaved(
- bool?
- String? restorationId,
- Color? thumbColor,
- Color? trackColor,
- required dynamic validators,
- bool value = false,
- VisualDensity? visualDensity,
Implementation
const JsonCupertinoSwitchBuilderModel(
super.args, {
this.activeColor,
this.autovalidateMode,
this.dragStartBehavior,
this.enabled = true,
this.label,
this.onChanged,
this.onSaved,
this.restorationId,
this.thumbColor,
this.trackColor,
required this.validators,
this.value = false,
this.visualDensity,
});