onCapturedPiecesChanged property

void Function({required List<PieceType> blackCapturedPieces, required List<PieceType> whiteCapturedPieces})? onCapturedPiecesChanged
final

Callback for captured pieces information. Called whenever the board position changes. Parameters are lists of piece types captured by each player.

Implementation

final void Function({
  required List<PieceType> whiteCapturedPieces,
  required List<PieceType> blackCapturedPieces,
})? onCapturedPiecesChanged;