getAccesses static method

Future<Map<String, PagesAndDialogAccesss>> getAccesses(
  1. AccessBloc accessBloc,
  2. MemberModel? member,
  3. List<AppModel> apps,
  4. bool isLoggedIn,
)

Implementation

static Future<Map<String, PagesAndDialogAccesss>> getAccesses(
    AccessBloc accessBloc,
    MemberModel? member,
    List<AppModel> apps,
    bool isLoggedIn) async {
  var accesses = <String, PagesAndDialogAccesss>{};
  for (var app in apps) {
    var access =
        await AccessHelper._getAccess(accessBloc, member, app, isLoggedIn);
    accesses[app.documentID] = access;
  }
  return accesses;
}