FSwitch constructor
const
FSwitch({
- FSwitchStyle? style,
- Widget? label,
- Widget? description,
- Widget? error,
- String? semanticLabel,
- bool value = false,
- ValueChanged<
bool> ? onChange, - bool enabled = true,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- 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,
});