COverflowMenu constructor
COverflowMenu({
- Key? key,
- required COverflowMenuController controller,
- required List<
COverflowMenuItem> items, - required Widget child,
- VoidCallback? onOpen,
- VoidCallback? onClose,
- bool barrierDismissible = true,
- COverflowMenuSize size = COverflowMenuSize.md,
Implementation
COverflowMenu({
Key? key,
required COverflowMenuController controller,
required List<COverflowMenuItem> items,
required Widget child,
VoidCallback? onOpen,
VoidCallback? onClose,
bool barrierDismissible = true,
Offset menuOffset = Offset.zero,
COverflowMenuSize size = COverflowMenuSize.md,
}) : assert(items.isNotEmpty),
props = COverflowMenuProps(
controller: controller,
barrierDismissible: barrierDismissible,
items: items,
menuOffset: menuOffset,
onOpen: onOpen,
child: child,
onClose: onClose,
size: size,
),
super(key: key);