CheckboxMenuItem constructor

const CheckboxMenuItem({
  1. Key? key,
  2. required bool value,
  3. bool tristate = false,
  4. required ValueChanged<bool?> onChanged,
  5. MouseCursor? mouseCursor,
  6. Color? activeColor,
  7. MaterialStateProperty<Color?>? fillColor,
  8. Color? checkColor,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. MaterialStateProperty<Color?>? overlayColor,
  12. double? splashRadius,
  13. MaterialTapTargetSize? materialTapTargetSize,
  14. VisualDensity? visualDensity,
  15. FocusNode? focusNode,
  16. bool autofocus = false,
  17. OutlinedBorder? shape,
  18. BorderSide? side,
  19. double? size,
  20. required Widget title,
  21. Widget? secondary,
  22. MenuItemControlAffinity controlAffinity = MenuItemControlAffinity.leading,
})

Implementation

const CheckboxMenuItem({
  Key? key,
  required this.value,
  this.tristate = false,
  required this.onChanged,
  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.size,
  required this.title,
  this.secondary,
  this.controlAffinity = MenuItemControlAffinity.leading
}) : super(key: key);