getThoseMenuItems method

List<MenuItemModel>? getThoseMenuItems(
  1. AppModel app,
  2. String uniqueId
)

Implementation

List<MenuItemModel>? getThoseMenuItems(AppModel app, String uniqueId) => [
      MenuItemModel(
          documentID: 'notifications',
          text: 'Notifications',
          description: 'Notifications',
          icon: IconModel(
              codePoint: Icons.notifications.codePoint,
              fontFamily: Icons.notifications.fontFamily),
          action: OpenDialog(app,
              dialogID: constructDocumentId(
                  uniqueId: uniqueId,
                  documentId: notificationDashboardDialogId),
              conditions: DisplayConditionsModel(
                  privilegeLevelRequired:
                      PrivilegeLevelRequired.noPrivilegeRequired,
                  packageCondition: NotificationsPackage
                      .conditionMemberHasUnreadNotifications,
                  conditionOverride: ConditionOverride
                      .inclusiveForBlockedMembers // allow blocked members to see
                  ))),
    ];