homeMenu function

Future<HomeMenuModel> homeMenu(
  1. String appId, {
  2. bool? store,
})

Implementation

Future<HomeMenuModel> homeMenu(String appId, {bool? store}) async {
  var homeMenuId = homeMenuID(appId);
  var homeMenu = await homeMenuRepository(appId: appId)!.get(homeMenuId);
  if (homeMenu == null) {
    return newHomeMenu(appId, store: store);
  } else {
    return homeMenu;
  }
}