copyWith method

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

Implementation

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