StandardMove constructor

const StandardMove({
  1. required int from,
  2. required int to,
  3. int? capturedPiece,
  4. int? promoSource,
  5. int? promoPiece,
  6. CastlingRights? castlingDir,
  7. int? castlingPieceSquare,
  8. bool enPassant = false,
  9. bool setEnPassant = false,
})

Implementation

const StandardMove({
  required this.from,
  required this.to,
  this.capturedPiece,
  this.promoSource,
  this.promoPiece,
  this.castlingDir,
  this.castlingPieceSquare,
  this.enPassant = false,
  this.setEnPassant = false,
});