copyWith method
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,
);