openMenu method

  1. @override
Future<void> openMenu(
  1. AppModel app,
  2. BuildContext context, {
  3. required RelativeRect position,
  4. required List<AbstractMenuItemAttributes> menuItems,
  5. RgbModel? popupMenuBackgroundColorOverride,
})
override

Implementation

@override
Future<void> openMenu(AppModel app, BuildContext context,
    {required RelativeRect position,
    required List<AbstractMenuItemAttributes> menuItems,
    RgbModel? popupMenuBackgroundColorOverride}) async {
  RgbModel? popupMenuBackgroundColor;
  if (popupMenuBackgroundColorOverride == null) {
    popupMenuBackgroundColor =
        _monaStyle.monaStyleAttributesModel.backgroundColorHomeMenu;
  } else {
    popupMenuBackgroundColor = popupMenuBackgroundColorOverride;
  }
  return MenuHelper(_monaStyle.frontEndStyle()).openMenu(app, context,
      position: position,
      menuItems: menuItems,
      popupMenuBackgroundColor: popupMenuBackgroundColor);
}