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