copyWith method

AccessEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. int? privilegeLevel,
  4. int? points,
  5. bool? blocked,
  6. int? privilegeLevelBeforeBlocked,
})

Implementation

AccessEntity copyWith({
  String? documentID,
  String? appId,
  int? privilegeLevel,
  int? points,
  bool? blocked,
  int? privilegeLevelBeforeBlocked,
}) {
  return AccessEntity(
    appId: appId ?? this.appId,
    privilegeLevel: privilegeLevel ?? this.privilegeLevel,
    points: points ?? this.points,
    blocked: blocked ?? this.blocked,
    privilegeLevelBeforeBlocked:
        privilegeLevelBeforeBlocked ?? this.privilegeLevelBeforeBlocked,
  );
}