copyWith method

RoomEntity copyWith({
  1. String? documentID,
  2. String? ownerId,
  3. String? appId,
  4. String? description,
  5. bool? isRoom,
  6. List<String>? members,
  7. Object? timestamp,
})

Implementation

RoomEntity copyWith({
  String? documentID,
  String? ownerId,
  String? appId,
  String? description,
  bool? isRoom,
  List<String>? members,
  Object? timestamp,
}) {
  return RoomEntity(
    ownerId: ownerId ?? this.ownerId,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    isRoom: isRoom ?? this.isRoom,
    members: members ?? this.members,
    timestamp: timestamp ?? this.timestamp,
  );
}