CheckboxMenuButton constructor
- Key? key,
- required bool? value,
- bool tristate = false,
- bool isError = false,
- required ValueChanged<
bool?> ? onChanged, - ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - FocusNode? focusNode,
- MenuSerializableShortcut? shortcut,
- ButtonStyle? style,
- MaterialStatesController? statesController,
- Clip clipBehavior = Clip.none,
- Widget? trailingIcon,
- bool closeOnActivate = true,
- 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,
});