UIFormSwitchField constructor

const UIFormSwitchField({
  1. Key? key,
  2. required String name,
  3. required String label,
  4. bool initialValue = false,
  5. bool enabled = true,
  6. ValueChanged<bool?>? onChanged,
})

Implementation

const UIFormSwitchField({
  super.key,
  required this.name,
  required this.label,
  this.initialValue = false,
  this.enabled = true,
  this.onChanged,
});