Switch constructor

Switch({
  1. required bool value,
  2. Widget? label,
  3. ValueCmdCallback<bool>? onChanged,
  4. bool enabled = true,
  5. bool autofocus = false,
  6. String? focusId,
  7. FocusController? focusController,
  8. Key? key,
})

Implementation

Switch({
  required this.value,
  this.label,
  this.onChanged,
  this.enabled = true,
  this.autofocus = false,
  this.focusId,
  this.focusController,
  super.key,
});