copyWith method
ChatModel
copyWith({
- String? documentID,
- String? authorId,
- String? appId,
- String? roomId,
- DateTime? timestamp,
- String? saying,
- ChatAccessibleByGroup? accessibleByGroup,
- List<
String> ? accessibleByMembers, - List<
String> ? readAccess, - List<
ChatMediumModel> ? chatMedia,
override
Implementation
@override
ChatModel copyWith({
String? documentID,
String? authorId,
String? appId,
String? roomId,
DateTime? timestamp,
String? saying,
ChatAccessibleByGroup? accessibleByGroup,
List<String>? accessibleByMembers,
List<String>? readAccess,
List<ChatMediumModel>? chatMedia,
}) {
return ChatModel(
documentID: documentID ?? this.documentID,
authorId: authorId ?? this.authorId,
appId: appId ?? this.appId,
roomId: roomId ?? this.roomId,
timestamp: timestamp ?? this.timestamp,
saying: saying ?? this.saying,
accessibleByGroup: accessibleByGroup ?? this.accessibleByGroup,
accessibleByMembers: accessibleByMembers ?? this.accessibleByMembers,
readAccess: readAccess ?? this.readAccess,
chatMedia: chatMedia ?? this.chatMedia,
);
}