copyWith method
SearchChatMessages
copyWith({
- int? chatId,
- String? query,
- MessageSender? senderId,
- int? fromMessageId,
- int? offset,
- int? limit,
- SearchMessagesFilter? filter,
- 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,
);