getLoggedOut static method

Future<LoggedOut> getLoggedOut(
  1. AccessBloc accessBloc,
  2. List<AppModel> apps, {
  3. AppModel? playstoreApp,
})

Implementation

static Future<LoggedOut> getLoggedOut(
  AccessBloc accessBloc,
  List<AppModel> apps, {
  AppModel? playstoreApp,
}) async {
  var determinedApps = await Future.wait(apps.map((app) async {
    var homePage = await getHomepage(app);
    return DeterminedApp(app, homePage);
  }).toList());

  var accesses =
      await AccessHelper.getAccesses(accessBloc, null, apps, false);
  var loggedOut =
      LoggedOut._(determinedApps, accesses, playstoreApp: playstoreApp);
  return loggedOut;
}