BoardData class

Singleton which contains all the ingame info about the pieces and the essential components.

This singleton contains:

  • The boards state.
  • A list of pending movements.
  • A reference to use the squares and the timers in order to update them.
  • What color has the current turn.
  • If the board must be rendered reversed(playing as black) or not.
  • The last movement done
  • A few helpers It is a singleton so it is the same instance all along the different components of the app.

Constructors

BoardData()
factory

Properties

boardMovements List<List<bool>>
read / write
clocks List<State<StatefulWidget>>
read / write
currentBoard List<List<Piece>>
read / write
hashCode int
The hash code for this object.
read-onlyinherited
lastMovement List<List<int>>
read / write
nextMoveIsCheckmate bool
read / write
prom String
read / write
reversedBoard bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedSquare List<int>
read / write
spectatorMode bool
read / write
squares List<State<StatefulWidget>>
read / write
whiteTurn bool
read / write

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