GameEventType enum Null safety
The type of the game event. This is used to indicate what kind of data is in the request / response and to be able to efficiently parse the data.
Constructors
- GameEventType()
-
const
Values
- disbanded → const GameEventType
-
Event that server creates if white player did not move at the start of the game.
- movePlayed → const GameEventType
-
Event represents a move played.
- drawOffered → const GameEventType
-
Event represents a draw offer.
- drawOfferCancelled → const GameEventType
-
Event represents that a draw offer has been cancelled.
- drawOfferResponded → const GameEventType
-
Event represents a player's response to the draw offer.
- resigned → const GameEventType
-
Event signaling a player resigned.
- flagged → const GameEventType
-
Event signaling that a player ran out of time.
- undoRequested → const GameEventType
-
Event represents that a player requested an undo.
- undoCancelled → const GameEventType
-
Event represents that a player cancelled undo request.
- undoRequestResponded → const GameEventType
-
Event represents a player's response to the undo request.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GameEventType> -
A constant List of the values in this enum, in order of their declaration.
[disbanded, movePlayed, drawOffered, drawOfferCancelled, drawOfferResponded, resigned, flagged, undoRequested, undoCancelled, undoRequestResponded]