menuItemWelcome function

dynamic menuItemWelcome(
  1. AppModel app,
  2. dynamic documentID,
  3. dynamic pageID,
  4. dynamic text, {
  5. PrivilegeLevelRequired? privilegeLevelRequired,
})

Implementation

menuItemWelcome(AppModel app, documentID, pageID, text,
        {PrivilegeLevelRequired? privilegeLevelRequired}) =>
    MenuItemModel(
        documentID: documentID,
        text: text,
        description: text,
        icon: IconModel(
            codePoint: Icons.emoji_people.codePoint,
            fontFamily: Icons.settings.fontFamily),
        action: GotoPage(
          app,
          pageID: pageID,
          conditions: privilegeLevelRequired == null
              ? null
              : DisplayConditionsModel(
                  privilegeLevelRequired: privilegeLevelRequired,
                  conditionOverride: ConditionOverride
                      .exactPrivilege // make sure the member only sees exactly the page addressed to him
                  ),
        ));