updateApp2 method

  1. @override
Future<LoggedOut> updateApp2(
  1. AccessBloc accessBloc,
  2. AppModel newCurrentApp
)
override

Implementation

@override
Future<LoggedOut> updateApp2(
    AccessBloc accessBloc, AppModel newCurrentApp) async {
  var homePage = await getHomepage(newCurrentApp);
  var newAccesses = await AccessHelper.extendAccesses(
      accessBloc, null, accesses, newCurrentApp, false);
  var newApps = apps.map((v) => v).toList();
  newApps.add(DeterminedApp(newCurrentApp, homePage));
  return Future.value(LoggedOut._(newApps, newAccesses,
      playstoreApp: playstoreApp, newForceRefresh: forceRefresh));
}