Move constructor

const Move(
  1. Color color,
  2. int from,
  3. int to,
  4. int flags,
  5. PieceType piece,
  6. PieceType? captured,
  7. PieceType? promotion,
)

Implementation

const Move(this.color, this.from, this.to, this.flags, this.piece,
    this.captured, this.promotion);