appBar function

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

Implementation

Future<AppBarModel> appBar(String appId, {bool? store}) async {
  var appBarId = appBarID(appId);
  var appBar = await appBarRepository(appId: appId)!.get(appBarId);
  if (appBar == null) {
    return newAppBar(appId, store: store);
  } else {
    return appBar;
  }
}