GameStatus enum Null safety
Status of the game.
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
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<
GameStatus> -
A constant List of the values in this enum, in order of their declaration.
[notStarted, playing, draw, whiteCheckmated, blackCheckmated, whiteFlagged, blackFlagged, whiteResigned, blackResigned]