copyWith method

ChatItemRow copyWith({
  1. String? id,
  2. String? chatId,
  3. String? authorId,
  4. PreciseDateTime? at,
  5. SendingStatus? status,
  6. String? data,
  7. Value<String?> cursor = const Value.absent(),
  8. String? ver,
})

Implementation

ChatItemRow copyWith({
  String? id,
  String? chatId,
  String? authorId,
  PreciseDateTime? at,
  SendingStatus? status,
  String? data,
  Value<String?> cursor = const Value.absent(),
  String? ver,
}) => ChatItemRow(
  id: id ?? this.id,
  chatId: chatId ?? this.chatId,
  authorId: authorId ?? this.authorId,
  at: at ?? this.at,
  status: status ?? this.status,
  data: data ?? this.data,
  cursor: cursor.present ? cursor.value : this.cursor,
  ver: ver ?? this.ver,
);