CheckboxMenuButton constructor

const CheckboxMenuButton(
  1. {Key? key,
  2. required bool? value,
  3. bool tristate = false,
  4. bool isError = false,
  5. required ValueChanged<bool?>? onChanged,
  6. ValueChanged<bool>? onHover,
  7. ValueChanged<bool>? onFocusChange,
  8. FocusNode? focusNode,
  9. MenuSerializableShortcut? shortcut,
  10. ButtonStyle? style,
  11. MaterialStatesController? statesController,
  12. Clip clipBehavior = Clip.none,
  13. Widget? trailingIcon,
  14. bool closeOnActivate = true,
  15. required Widget? child}
)

Creates a const CheckboxMenuButton.

The child, value, and onChanged attributes are required.

Implementation

const CheckboxMenuButton({
  super.key,
  required this.value,
  this.tristate = false,
  this.isError = false,
  required this.onChanged,
  this.onHover,
  this.onFocusChange,
  this.focusNode,
  this.shortcut,
  this.style,
  this.statesController,
  this.clipBehavior = Clip.none,
  this.trailingIcon,
  this.closeOnActivate = true,
  required this.child,
});