COverflowMenu constructor

COverflowMenu({
  1. Key? key,
  2. required COverflowMenuController controller,
  3. required List<COverflowMenuItem> items,
  4. required Widget child,
  5. VoidCallback? onOpen,
  6. VoidCallback? onClose,
  7. bool barrierDismissible = true,
  8. Offset menuOffset = Offset.zero,
  9. 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);