Game class

A class to represent a game prefab

Constructors

Game(String name, Widget screen(BuildContext, Room), {bool usesLobby = true, bool canPostjoin = true, Map<String, dynamic>? prefabData, int? maxPlayers})
A class to represent a game prefab @param name The name of the game @param screen The screen to display for the game @param usesLobby Whether the game uses a lobby @param canPostjoin Whether the game can be joined after it has started @param prefabData The data to be used for the game @param maxPlayers The maximum number of players for the game @returns A game prefab

Properties

canPostjoin bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxPlayers int?
getter/setter pair
name String
getter/setter pair
prefabData Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen Widget Function(BuildContext, Room)
getter/setter pair
usesLobby bool
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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