copyWith method

Chats copyWith({
  1. DateTime? date,
  2. String? message,
  3. bool? read,
  4. String? owner,
})

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,
  );
}