menuItemFollowing function

MenuItemModel menuItemFollowing(
  1. String uniqueId,
  2. AppModel app,
  3. dynamic dialogID,
  4. dynamic privilegeLevelRequired,
)

Implementation

MenuItemModel menuItemFollowing(
        String uniqueId, AppModel app, dialogID, privilegeLevelRequired) =>
    MenuItemModel(
        documentID:
            constructDocumentId(uniqueId: uniqueId, documentId: dialogID),
        text: 'Following',
        description: 'Following',
        icon: IconModel(
            codePoint: Icons.favorite_sharp.codePoint,
            fontFamily: Icons.settings.fontFamily),
        action: OpenDialog(app,
            dialogID:
                constructDocumentId(uniqueId: uniqueId, documentId: dialogID),
            conditions: DisplayConditionsModel(
                privilegeLevelRequired: privilegeLevelRequired,
                packageCondition: CorePackage.mustBeLoggedIn)));