withDifferentPackageCondition method
Implementation
AccessDetermined withDifferentPackageCondition(
String appId, Package package, String packageCondition, bool value) {
var newAccesses = {...accesses};
if (newAccesses[appId] != null) {
var newPackageConditionsAccess = {
...newAccesses[appId]!.packageConditionsAccess
};
newPackageConditionsAccess[packageCondition] = value;
newAccesses[appId] = newAccesses[appId]!
.copyWith(packageConditionsAccess: newPackageConditionsAccess);
return withNewAccesses(newAccesses);
} else {
return this;
}
}