withOtherPrivilege method

  1. @override
Future<AccessDetermined> withOtherPrivilege(
  1. AccessBloc accessBloc,
  2. AppModel app,
  3. PrivilegeLevel privilege,
  4. bool blocked,
)
override

Implementation

@override
Future<AccessDetermined> withOtherPrivilege(AccessBloc accessBloc,
    AppModel app, PrivilegeLevel privilege, bool blocked) async {
  accesses.removeWhere((key, value) => key == app.documentID);
  var newAccesses = await AccessHelper.extendAccesses2(
      accessBloc, null, accesses, app, false, privilege, blocked);
  return Future.value(LoggedOut._(apps, newAccesses,
      playstoreApp: playstoreApp, newForceRefresh: forceRefresh));
}