SimpleChessBoard constructor
const
SimpleChessBoard({
- Key? key,
- required String fen,
- required BoardColor orientation,
- required PlayerType whitePlayerType,
- required PlayerType blackPlayerType,
- required void onMove({
- required ShortMove move,
- required Future<
PieceType?> onPromote(), - required void onPromotionCommited({
- required ShortMove moveDone,
- required ChessBoardColors chessBoardColors,
- bool engineThinking = false,
- bool showCoordinatesZone = true,
- 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);