openMenu method
Future<void>
openMenu(
- AppModel app,
- BuildContext context, {
- required RelativeRect position,
- 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);
}