Game class

Implemented types

Constructors

Game({int id, String shortName, String title, FormattedText text, String description, Photo photo, Animation animation})
Describes a game. id Game ID . shortName Game short name. To share a game use the URL https://t.me/{bot_username}?game={game_short_name} . title Game title . text Game text, usually containing scoreboards for a game. paramDescription Game description . photo Game photo . animation Game animation; may be null
Game.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

animation Animation
read / write
description String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
photo Photo
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shortName String
read / write
text FormattedText
read / write
title String
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"game"