getDrawer function

Future<DrawerModel> getDrawer(
  1. String appId,
  2. DrawerType drawerType, {
  3. bool? store,
})

Implementation

Future<DrawerModel> getDrawer(String appId, DrawerType drawerType,
    {bool? store}) async {
  var drawerId = drawerID(appId, drawerType);
  var drawer = await drawerRepository(appId: appId)!.get(drawerId);
  if (drawer == null) {
    return newDrawer(appId, drawerType, store: store);
  } else {
    return drawer;
  }
}