copyWith method
Copy model with modified properties.
Properties:
chat_id
: The chat that contains the message with the gamemessage_id
: Identifier of the messageuser_id
: User identifier
Implementation
GetGameHighScores copyWith({
int? chatId,
int? messageId,
int? userId,
}) =>
GetGameHighScores(
chatId: chatId ?? this.chatId,
messageId: messageId ?? this.messageId,
userId: userId ?? this.userId,
);