getLoggedOut static method
Future<LoggedOut>
getLoggedOut(
- AccessBloc accessBloc,
- List<
AppModel> apps, { - 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;
}