copyWith method

SearchMessages copyWith({
  1. ChatList? chatList,
  2. String? query,
  3. int? offsetDate,
  4. int? offsetChatId,
  5. int? offsetMessageId,
  6. int? limit,
  7. SearchMessagesFilter? filter,
  8. int? minDate,
  9. int? maxDate,
})

Implementation

SearchMessages copyWith({
  ChatList? chatList,
  String? query,
  int? offsetDate,
  int? offsetChatId,
  int? offsetMessageId,
  int? limit,
  SearchMessagesFilter? filter,
  int? minDate,
  int? maxDate,
}) => SearchMessages(
  chatList: chatList ?? this.chatList,
  query: query ?? this.query,
  offsetDate: offsetDate ?? this.offsetDate,
  offsetChatId: offsetChatId ?? this.offsetChatId,
  offsetMessageId: offsetMessageId ?? this.offsetMessageId,
  limit: limit ?? this.limit,
  filter: filter ?? this.filter,
  minDate: minDate ?? this.minDate,
  maxDate: maxDate ?? this.maxDate,
);