drawer function

Drawer drawer(
  1. AppModel app,
  2. BuildContext context, {
  3. required DrawerType drawerType,
  4. required MemberModel? member,
  5. Key? key,
  6. DrawerHeader1Attributes? header1,
  7. DrawerHeader2Attributes? header2,
  8. BackgroundModel? backgroundOverride,
  9. RgbModel? popupMenuBackgroundColorOverride,
  10. required List<AbstractMenuItemAttributes> items,
})

Implementation

Drawer drawer(AppModel app, BuildContext context,
        {required DrawerType drawerType,
        required MemberModel? member,
        Key? key,
        DrawerHeader1Attributes? header1,
        DrawerHeader2Attributes? header2,
        BackgroundModel? backgroundOverride,
        RgbModel? popupMenuBackgroundColorOverride,
        required List<AbstractMenuItemAttributes> items}) =>
    StyleRegistry.registry()
        .styleWithApp(app)
        .frontEndStyle()
        .drawerStyle()
        .drawer(app, context,
            drawerType: drawerType,
            member: member,
            key: key,
            header1: header1,
            header2: header2,
            backgroundOverride: backgroundOverride,
            popupMenuBackgroundColorOverride: popupMenuBackgroundColorOverride,
            items: items);