profileDrawerMenuDef method
MenuDefModel
profileDrawerMenuDef(
)
override
Implementation
@override
MenuDefModel profileDrawerMenuDef() {
List<MenuItemModel> menuItems = [];
menuItems.add(MenuItemModel(
documentID: "1",
text: "Other apps",
description: "Other apps",
action: InternalAction(app,
internalActionEnum: InternalActionEnum.otherApps)));
menuItems.add(menuItemSignOut(app, "2"));
menuItems.add(menuItemManageAccount(app, "4", MemberDashboard.identifier));
menuItems.add(MenuItemModel(
documentID: "join",
text: "JOIN",
description: "Request membership",
icon: null,
action: WorkflowSetup.requestMembershipAction()));
MenuDefModel menu = MenuDefModel(
documentID: defaults.drawerID(theApp.documentID, DrawerType.right),
appId: minkeyAppId,
name: "Drawer Profile Menu",
menuItems: menuItems);
return menu;
}