ChessBoardInterface constructor

ChessBoardInterface({
  1. String? fen,
  2. Duration? timeLimit,
  3. dynamic onTimeOut()?,
})

Implementation

ChessBoardInterface({this.fen, this.timeLimit, this.onTimeOut}) {
  initFEN(fen ?? initialFENState);
  if (timeLimit != null) switchTimer();
  // Initialize taken pieces for the starting position.
  _rebuildTakenPiecesFromHistory();
}