copyWith method
Copy model with modified properties.
Properties:
chat_id
: Identifier of the target chat; must be an identifier of a channel chatreturn_local
: Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
Implementation
GetChatSimilarChatCount copyWith({
int? chatId,
bool? returnLocal,
}) =>
GetChatSimilarChatCount(
chatId: chatId ?? this.chatId,
returnLocal: returnLocal ?? this.returnLocal,
);