copyWith method
AccessModel
copyWith({
- String? documentID,
- String? appId,
- PrivilegeLevel? privilegeLevel,
- int? points,
- bool? blocked,
- PrivilegeLevelBeforeBlocked? privilegeLevelBeforeBlocked,
override
Implementation
@override
AccessModel copyWith({
String? documentID,
String? appId,
PrivilegeLevel? privilegeLevel,
int? points,
bool? blocked,
PrivilegeLevelBeforeBlocked? privilegeLevelBeforeBlocked,
}) {
return AccessModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
privilegeLevel: privilegeLevel ?? this.privilegeLevel,
points: points ?? this.points,
blocked: blocked ?? this.blocked,
privilegeLevelBeforeBlocked:
privilegeLevelBeforeBlocked ?? this.privilegeLevelBeforeBlocked,
);
}