Checkbox constructor

Checkbox({
  1. Key? key,
  2. required bool value,
  3. required String label,
  4. required void onChanged(
    1. bool newValue
    ),
  5. bool focused = false,
  6. Style style = Style.empty,
  7. Style focusedStyle = const Style(modifiers: Modifier.reverse),
})

Creates a new Checkbox.

Implementation

Checkbox({
  super.key,
  required this.value,
  required this.label,
  required this.onChanged,
  this.focused = false,
  this.style = Style.empty,
  this.focusedStyle = const Style(modifiers: Modifier.reverse),
});