GameStatus enum

Status of the game.

Inheritance

Constructors

GameStatus()
const

Values

notStarted → const GameStatus

The game has not started yet. Position can either be initial or custom.

playing → const GameStatus

The game is in progress.

draw → const GameStatus

Players have agreed to a draw and the game is over. Since there is no concept of stalemate, this is the only option for this status.

whiteCheckmated → const GameStatus

White has taken black's king and the game is over.

blackCheckmated → const GameStatus

Black has taken white's king and the game is over.

whiteFlagged → const GameStatus

White has lost on time and the game is over.

blackFlagged → const GameStatus

Black has lost on time and the game is over.

whiteResigned → const GameStatus

White has resigned and the game is over.

blackResigned → const GameStatus

Black has resigned and the game is over.

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<GameStatus>
A constant List of the values in this enum, in order of their declaration.