copyWith method

GetGameHighScores copyWith({
  1. int? chatId,
  2. int? messageId,
  3. int? userId,
})

Copy model with modified properties.

Properties:

  • chat_id: The chat that contains the message with the game
  • message_id: Identifier of the message
  • user_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,
    );