addApp method

  1. @override
Future<LoggedIn> addApp(
  1. AccessBloc accessBloc,
  2. AppModel newCurrentApp
)
override

Implementation

@override
Future<LoggedIn> addApp(AccessBloc accessBloc, AppModel newCurrentApp) async {
  for (var app in apps) {
    if (app.app.documentID == newCurrentApp.documentID) {
      return LoggedIn._(
        usr,
        member,
        postLoginAction,
        apps,
        accesses,
        subscribedToApps,
        blockedMembers,
        playstoreApp: playstoreApp,
        isProcessing: isProcessing,
        newForceRefresh: forceRefresh,
      );
    }
  }

  return addApp2(accessBloc, accesses, apps, newCurrentApp);
}