menuItemWelcome function
dynamic
menuItemWelcome(
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
),
));