MenuCheckbox constructor
const
MenuCheckbox({})
Creates a checkbox menu item.
Parameters:
value(bool): Current checked state, defaults to falseonChanged(ContextedValueChanged<bool>?): State change callbackchild(Widget, required): Display contenttrailing(Widget?): Optional trailing widgetenabled(bool): Whether enabled, defaults to trueautoClose(bool): Whether to auto-close menu, defaults to true
Implementation
const MenuCheckbox({
super.key,
this.value = false,
this.onChanged,
required this.child,
this.trailing,
this.enabled = true,
this.autoClose = true,
});