GlassCheckbox constructor

const GlassCheckbox({
  1. Key? key,
  2. required bool? value,
  3. required ValueChanged<bool?>? onChanged,
  4. bool tristate = false,
  5. Color? activeColor,
  6. String? semanticLabel,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
})

Creates a glass checkbox; value may be null only with tristate.

Implementation

const GlassCheckbox({
  super.key,
  required this.value,
  required this.onChanged,
  this.tristate = false,
  this.activeColor,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : assert(tristate || value != null);