Switch constructor
const
Switch({
- Key? key,
- SwitchStyle? style,
- String? tooltip,
- ValueChanged<
bool> ? onChanged, - bool selected = false,
- bool indeterminate = false,
- bool disabled = false,
- bool autofocus = false,
- FocusNode? focusNode,
- SwitchEventController? eventsController,
- Curve? curve,
- Duration? duration,
Implementation
const Switch({
Key? key,
this.style,
this.tooltip,
this.onChanged,
this.selected = false,
this.indeterminate = false,
this.disabled = false,
this.autofocus = false,
this.focusNode,
this.eventsController,
this.curve,
this.duration,
}) : super(key: key);