drawerMenuDef method
Implementation
@override
MenuDefModel drawerMenuDef() {
MenuDefModel theHomeMenuDef = homeMenuDef();
var drawerMenuItems = theHomeMenuDef.menuItems!;
drawerMenuItems.addAll(getPolicyMenuItems());
MenuDefModel drawerMenu = theHomeMenuDef.copyWith(
documentID: defaults.drawerID(theApp.documentID, DrawerType.left),
name: "Drawer Menu (copy of main menu)",
menuItems: drawerMenuItems);
return drawerMenu;
}