GameInfo class Null safety
An object to provide info about a particular game to the client
Includes
- Annotations
Constructors
-
GameInfo({required GameCode gameId, required IList<
PlayerName> players, required PlayerName player, required bool creator, required GameType gameType, required GameStatus status}) -
constfactory
-
GameInfo.fromJson(Map<
String, dynamic> map) -
factory
Properties
-
copyWith
→ $GameInfoCopyWith<
GameInfo> -
@JsonKey(ignore: true), read-only, inherited
- creator → bool
-
read-only, inherited
- gameId → String
-
read-only, inherited
- gameType → String
-
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- player → String
-
read-only, inherited
-
players
→ IList<
String> -
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- status → GameStatus
-
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited