menuItem function

MenuItemModel menuItem(
  1. String uniqueId,
  2. AppModel app,
  3. dynamic pageID,
  4. dynamic text,
  5. IconData iconData,
)

Implementation

MenuItemModel menuItem(
        String uniqueId, AppModel app, pageID, text, IconData iconData) =>
    MenuItemModel(
        documentID: constructDocumentId(uniqueId: uniqueId, documentId: pageID),
        text: text,
        description: text,
        icon: IconModel(
            codePoint: iconData.codePoint,
            fontFamily: Icons.settings.fontFamily),
        action: GotoPage(app,
            pageID:
                constructDocumentId(uniqueId: uniqueId, documentId: pageID)));