Board class
Constructors
-
Board({required String fen, required double size, required BoardColor orientation, required Color lightSquareColor, required Color darkSquareColor, required Moved onMove, required Promoted onPromote, BuildPiece? buildPiece, BuildSquare? buildSquare, BuildCustomPiece? buildCustomPiece, required Color selectionHighlightColor, required Color lastMoveHighlightColor, required List<
String> lastMove})
Properties
-
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
- lastMoveHighlightColor → Color
-
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
- selectionHighlightColor → Color
-
final
- 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