SimpleChessBoard constructor

const SimpleChessBoard({
  1. Key? key,
  2. required String fen,
  3. bool blackSideAtBottom = false,
  4. required PlayerType whitePlayerType,
  5. required PlayerType blackPlayerType,
  6. required void onMove({
    1. required ShortMove move,
    }),
  7. required Future<PieceType?> onPromote(),
  8. required void onPromotionCommited({
    1. required ShortMove moveDone,
    2. required PieceType pieceType,
    }),
  9. required void onTap({
    1. required String cellCoordinate,
    }),
  10. required ChessBoardColors chessBoardColors,
  11. required Map<String, Color> cellHighlights,
  12. bool engineThinking = false,
  13. bool showCoordinatesZone = true,
  14. BoardArrow? lastMoveToHighlight,
  15. bool highlightLastMoveSquares = false,
  16. bool? showPossibleMoves,
  17. Widget normalMoveIndicatorBuilder(
    1. double cellSize
    )?,
  18. Widget captureMoveIndicatorBuilder(
    1. 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,
});