copyWith method

SearchSecretMessages copyWith({
  1. int? chatId,
  2. String? query,
  3. String? offset,
  4. int? limit,
  5. SearchMessagesFilter? filter,
})

Implementation

SearchSecretMessages copyWith({
  int? chatId,
  String? query,
  String? offset,
  int? limit,
  SearchMessagesFilter? filter,
}) =>
    SearchSecretMessages(
      chatId: chatId ?? this.chatId,
      query: query ?? this.query,
      offset: offset ?? this.offset,
      limit: limit ?? this.limit,
      filter: filter ?? this.filter,
    );