Checkbox constructor

const Checkbox({
  1. Key? key,
  2. required bool? checked,
  3. required ValueChanged<bool?>? onChanged,
  4. CheckboxThemeData? style,
  5. Widget? content,
  6. String? semanticLabel,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
})

Creates a checkbox.

Implementation

const Checkbox({
  super.key,
  required this.checked,
  required this.onChanged,
  this.style,
  this.content,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
});