DraftModeFormSwitch constructor
const
DraftModeFormSwitch({
- Key? key,
- required DraftModeFormAttribute<
bool> attribute, - bool enabled = true,
- FormFieldSetter<
bool> ? onSaved, - ValueChanged<
bool> ? onChanged, - String? label,
Implementation
const DraftModeFormSwitch({
super.key,
required this.attribute,
this.enabled = true,
this.onSaved,
this.onChanged,
this.label,
});