DraftModeFormSwitch constructor

const DraftModeFormSwitch({
  1. Key? key,
  2. required DraftModeFormAttribute<bool> attribute,
  3. bool enabled = true,
  4. FormFieldSetter<bool>? onSaved,
  5. ValueChanged<bool>? onChanged,
  6. String? label,
})

Implementation

const DraftModeFormSwitch({
  super.key,
  required this.attribute,
  this.enabled = true,
  this.onSaved,
  this.onChanged,
  this.label,
});