copyWith method

Chat copyWith({
  1. String? id,
  2. String? message,
  3. String? url,
  4. String? type,
  5. String? sendAt,
  6. String? originalId,
  7. String? senderId,
})

Implementation

Chat copyWith({
  String? id,
  String? message,
  String? url,
  String? type,
  String? sendAt,
  String? originalId,
  String? senderId,
}) =>
    Chat(
      id: id ?? this.id,
      message: message ?? this.message,
      url: url ?? this.url,
      type: type ?? this.type,
      sendAt: sendAt ?? this.sendAt,
      originalId: originalId ?? this.originalId,
      senderId: senderId ?? this.senderId,
    );