copyWith method
Implementation
Chats copyWith({
DateTime? date,
String? message,
bool? read,
String? owner,
}) {
return Chats(
date: date ?? this.date,
message: message ?? this.message,
read: read ?? this.read,
owner: owner ?? this.owner,
);
}