Board class

Constructors

Board.new({required String fen, required double size, required BoardColor orientation, required Color lightSquareColor, required Color darkSquareColor, required ChessBoardColors boardColors, required Moved onMove, required Promoted onPromote, required PromotionCommited onPromotionCommited, BuildPiece? buildPiece, BuildSquare? buildSquare, BuildCustomPiece? buildCustomPiece, required List<String> lastMove, required List<BoardArrow> arrows})

Properties

arrows List<BoardArrow>
final
boardColors ChessBoardColors
final
buildCustomPiece → Option<BuildCustomPiece>
final
buildPiece → Option<BuildPiece>
final
buildSquare → Option<BuildSquare>
final
darkSquareColor Color
final
fen String
final
hashCode int
The hash code for this object.
no setterinherited
lastMove List<String>
final
lightSquareColor Color
final
orientation BoardColor
final
promotion Future<Option<PieceType>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
final
squares List<Square>
no setter
squareSize double
no setter

Methods

makeMove(ShortMove move) Future<void>
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