CheckboxState constructor

const CheckboxState({
  1. Key? key,
  2. required bool? value,
  3. bool tristate = false,
  4. ValueChanged<bool?>? onChanged,
  5. CheckboxStateChanged? onWaitChanged,
  6. MouseCursor? mouseCursor,
  7. Color? activeColor,
  8. MaterialStateProperty<Color?>? fillColor,
  9. Color? checkColor,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. MaterialStateProperty<Color?>? overlayColor,
  13. double? splashRadius,
  14. MaterialTapTargetSize? materialTapTargetSize,
  15. VisualDensity? visualDensity,
  16. FocusNode? focusNode,
  17. bool autofocus = false,
  18. OutlinedBorder? shape,
  19. BorderSide? side,
  20. ValueCallback<BuildContext>? initState,
  21. ValueCallback<BuildContext>? dispose,
  22. ValueCallback<BuildContext>? didChangeDependencies,
  23. ValueCallback<BuildContext>? didUpdateWidget,
})

Implementation

const CheckboxState({
  super.key,
  required this.value,
  this.tristate = false,
  this.onChanged,
  this.onWaitChanged,
  this.mouseCursor,
  this.activeColor,
  this.fillColor,
  this.checkColor,
  this.focusColor,
  this.hoverColor,
  this.overlayColor,
  this.splashRadius,
  this.materialTapTargetSize,
  this.visualDensity,
  this.focusNode,
  this.autofocus = false,
  this.shape,
  this.side,
  this.initState,
  this.dispose,
  this.didChangeDependencies,
  this.didUpdateWidget,
}) : assert(tristate || value != null);