GameEventType enum

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.

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<GameEventType>
A constant List of the values in this enum, in order of their declaration.