Game class

Inheritance

Constructors

Game({int id, String shortName, String title, FormattedText text, String description, Photo photo, Animation animation})
Describes a game
Game.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

animation Animation
animation Game animation; may be null
read / write
description String
description Game description
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Game game
read / write
photo Photo
photo Game photo
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shortName String
shortName Game short name. To share a game use the URL https://t.me/{bot_username}?game={game_short_name}
read / write
text FormattedText
text Game text, usually containing scoreboards for a game
read / write
title String
title Game title
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'game'