Checkbox constructor
const
Checkbox({
- Key? key,
- required bool? checked,
- required ValueChanged<
bool?> ? onChanged, - CheckboxThemeData? style,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
Creates a checkbox.
Implementation
const Checkbox({
Key? key,
required this.checked,
required this.onChanged,
this.style,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : super(key: key);