copyWith method

  1. @override
AccessModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. PrivilegeLevel? privilegeLevel,
  4. int? points,
  5. bool? blocked,
  6. 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,
  );
}