copyWith method

ViewMessages copyWith({
  1. int? chatId,
  2. int? messageThreadId,
  3. List<int>? messageIds,
  4. bool? forceRead,
})

Implementation

ViewMessages copyWith({
  int? chatId,
  int? messageThreadId,
  List<int>? messageIds,
  bool? forceRead,
}) => ViewMessages(
  chatId: chatId ?? this.chatId,
  messageThreadId: messageThreadId ?? this.messageThreadId,
  messageIds: messageIds ?? this.messageIds,
  forceRead: forceRead ?? this.forceRead,
);