Board constructor
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,
Implementation
Board({
required this.fen,
required this.size,
required this.orientation,
required this.lightSquareColor,
required this.darkSquareColor,
required Moved onMove,
required Promoted onPromote,
BuildPiece? buildPiece,
BuildSquare? buildSquare,
BuildCustomPiece? buildCustomPiece,
required this.selectionHighlightColor,
required this.lastMoveHighlightColor,
required this.lastMove,
}) : _onMove = onMove,
_onPromote = onPromote,
buildPiece = Option.fromNullable(buildPiece),
buildSquare = Option.fromNullable(buildSquare),
buildCustomPiece = Option.fromNullable(buildCustomPiece);