ChessBoard constructor

const ChessBoard({
  1. Key? key,
  2. required ChessBoardController controller,
  3. double? size,
  4. bool enableUserMoves = true,
  5. BoardColor boardColor = BoardColor.brown,
  6. PlayerColor boardOrientation = PlayerColor.white,
  7. VoidCallback? onMove,
  8. List<BoardArrow> arrows = const [],
})

Implementation

const ChessBoard({
  Key? key,
  required this.controller,
  this.size,
  this.enableUserMoves = true,
  this.boardColor = BoardColor.brown,
  this.boardOrientation = PlayerColor.white,
  this.onMove,
  this.arrows = const [],
}) : super(key: key);