JsonCupertinoSwitchBuilder constructor
const
JsonCupertinoSwitchBuilder({
- Color? activeColor,
- AutovalidateMode? autovalidateMode,
- DragStartBehavior? dragStartBehavior,
- required bool enabled,
- String? label,
- ValueChanged<
bool> ? onChanged, - ValueChanged<
bool?> ? onSaved, - String? restorationId,
- Color? thumbColor,
- Color? trackColor,
- Validator? validator,
- bool? value,
- VisualDensity? visualDensity,
Implementation
const JsonCupertinoSwitchBuilder({
this.activeColor,
this.autovalidateMode,
this.dragStartBehavior,
required this.enabled,
this.label,
this.onChanged,
this.onSaved,
this.restorationId,
this.thumbColor,
this.trackColor,
this.validator,
this.value,
this.visualDensity,
}) : super(numSupportedChildren: kNumSupportedChildren);