makeMove method
Implementation
bool makeMove({
required final String from,
required final String to,
final String? promotion,
}) {
final moveMade = promotion != null
? game.move({fromKey: from, toKey: to, promotionKey: promotion})
: game.move({fromKey: from, toKey: to});
if (moveMade) {
_notifyListeners();
return true;
}
return false;
}