menuItem function

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

Implementation

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