Move constructor Null safety

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

Implementation

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