Move constructor
const
Move({})
Implementation
const Move({
required this.player,
required this.piece,
required this.from,
required this.to,
this.isPromotion = false,
this.isCapture = false,
this.isDrop = false,
this.asKif,
}) : assert(!(isPromotion &&
isDrop)), //a move cannot have isDrop and isPromotion
assert(isDrop
? from == null
: from !=
null);