copyWith method

SearchChatMessages copyWith({
  1. int? chatId,
  2. String? query,
  3. MessageSender? senderId,
  4. int? fromMessageId,
  5. int? offset,
  6. int? limit,
  7. SearchMessagesFilter? filter,
  8. int? messageThreadId,
})

Implementation

SearchChatMessages copyWith({
  int? chatId,
  String? query,
  MessageSender? senderId,
  int? fromMessageId,
  int? offset,
  int? limit,
  SearchMessagesFilter? filter,
  int? messageThreadId,
}) =>
    SearchChatMessages(
      chatId: chatId ?? this.chatId,
      query: query ?? this.query,
      senderId: senderId ?? this.senderId,
      fromMessageId: fromMessageId ?? this.fromMessageId,
      offset: offset ?? this.offset,
      limit: limit ?? this.limit,
      filter: filter ?? this.filter,
      messageThreadId: messageThreadId ?? this.messageThreadId,
    );