copyWith method
RoomModel
copyWith({
- String? documentID,
- String? ownerId,
- String? appId,
- String? description,
- bool? isRoom,
- List<
String> ? members, - 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,
);
}