copyWith method

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

Implementation

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