PlayedMove constructor

const PlayedMove(
  1. Square from,
  2. Square to,
  3. Piece? pieceOnLandingSquare,
  4. Piece? promotionTo,
)

Constructs new PlayedMove object for move from square to square with info about pieceOnLandingSquare.

Implementation

const PlayedMove(
  Square from,
  Square to,
  this.pieceOnLandingSquare,
  Piece? promotionTo,
) : super(from, to, promotionTo);