withOtherPrivilege method
Future<AccessDetermined>
withOtherPrivilege(
- AccessBloc accessBloc,
- AppModel app,
- PrivilegeLevel privilege,
- 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));
}