SimpleChessBoard constructor
const
SimpleChessBoard({
- Key? key,
- required String fen,
- bool blackSideAtBottom = false,
- required PlayerType whitePlayerType,
- required PlayerType blackPlayerType,
- required void onMove({
- required ShortMove move,
- required Future<
PieceType?> onPromote(), - required void onPromotionCommited({}),
- required void onTap({
- required String cellCoordinate,
- required ChessBoardColors chessBoardColors,
- required Map<
String, Color> cellHighlights, - bool engineThinking = false,
- bool showCoordinatesZone = true,
- BoardArrow? lastMoveToHighlight,
- bool highlightLastMoveSquares = false,
- bool? showPossibleMoves,
- Widget normalMoveIndicatorBuilder(
- double cellSize
- Widget captureMoveIndicatorBuilder(
- double cellSize
Constructor.
Implementation
const SimpleChessBoard({
super.key,
required this.fen,
this.blackSideAtBottom = false,
required this.whitePlayerType,
required this.blackPlayerType,
required this.onMove,
required this.onPromote,
required this.onPromotionCommited,
required this.onTap,
required this.chessBoardColors,
required this.cellHighlights,
this.engineThinking = false,
this.showCoordinatesZone = true,
this.lastMoveToHighlight,
this.highlightLastMoveSquares = false,
this.showPossibleMoves,
this.normalMoveIndicatorBuilder,
this.captureMoveIndicatorBuilder,
});