ToggleButton constructor
const
ToggleButton({
- Key? key,
- required bool checked,
- required ValueChanged<
bool> ? onChanged, - Widget? child,
- ToggleButtonThemeData? style,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
Creates a toggle button.
Implementation
const ToggleButton({
super.key,
required this.checked,
required this.onChanged,
this.child,
this.style,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
});