FSwitch constructor

const FSwitch({
  1. FSwitchStyle? style,
  2. Widget? label,
  3. Widget? description,
  4. Widget? error,
  5. String? semanticLabel,
  6. bool value = false,
  7. ValueChanged<bool>? onChange,
  8. bool enabled = true,
  9. bool autofocus = false,
  10. FocusNode? focusNode,
  11. ValueChanged<bool>? onFocusChange,
  12. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  13. Key? key,
})

Creates a FSwitch.

Implementation

const FSwitch({
  this.style,
  this.label,
  this.description,
  this.error,
  this.semanticLabel,
  this.value = false,
  this.onChange,
  this.enabled = true,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  this.dragStartBehavior = DragStartBehavior.start,
  super.key,
});