SimpleChessBoard constructor

const SimpleChessBoard({
  1. Key? key,
  2. required String fen,
  3. required BoardColor orientation,
  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,
    }),
  9. required ChessBoardColors chessBoardColors,
  10. bool engineThinking = false,
  11. bool showCoordinatesZone = true,
  12. BoardArrow? lastMoveToHighlight,
})

Constructor.

Implementation

const SimpleChessBoard({
  Key? key,
  required this.fen,
  required this.orientation,
  required this.whitePlayerType,
  required this.blackPlayerType,
  required this.onMove,
  required this.onPromote,
  required this.onPromotionCommited,
  required this.chessBoardColors,
  this.engineThinking = false,
  this.showCoordinatesZone = true,
  this.lastMoveToHighlight,
}) : super(key: key);