FirebaseRoomData class

Representation of Firebase room document.

Constructors

FirebaseRoomData({required Game game, required Player host, required int playerCount, required bool gameStarted, required Timestamp lastUpdateTimestamp, required String? password, required DocumentSnapshot<Map<String, dynamic>> document})
const

Properties

document → DocumentSnapshot<Map<String, dynamic>>
Original Firebase document.
final
game Game
Game being played.
final
gameStarted bool
Whether the game has begun or not.
final
hashCode int
The hash code for this object.
no setterinherited
host Player
Player that owns the room.
final
lastUpdateTimestamp → Timestamp
Timestamp of the last event sent.
final
password String?
Password to access the room.
final
playerCount int
Number of players within the room.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

fromDocument(DocumentSnapshot<Map<String, dynamic>> document, Game game) FirebaseRoomData