openMenu method

void openMenu(
  1. String text,
  2. Offset offset,
  3. List<RightClickOptions> showOptions
)

Implementation

void openMenu(String text,Offset offset, List<RightClickOptions> showOptions){
  if(isMenuOpen){
    closeMenu();
  }
  _offset = offset;
  _showOptions = showOptions;
  text = text;
  _overlayEntry = _overlayEntryBuilder();
  Overlay.of(_context).insert(_overlayEntry);
  isMenuOpen = !isMenuOpen;
}