copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SearchSavedMessages copyWith({
int? savedMessagesTopicId,
ReactionType? Function()? tag,
String? query,
int? fromMessageId,
int? offset,
int? limit,
}) =>
SearchSavedMessages(
savedMessagesTopicId: savedMessagesTopicId ?? this.savedMessagesTopicId,
tag: tag != null ? tag() : this.tag,
query: query ?? this.query,
fromMessageId: fromMessageId ?? this.fromMessageId,
offset: offset ?? this.offset,
limit: limit ?? this.limit,
);