makeMoveWithPromotion method

void makeMoveWithPromotion (String from, String to, String pieceToPromoteTo)

Implementation

void makeMoveWithPromotion(String from, String to, String pieceToPromoteTo) {
  game?.move({"from": from, "to": to, "promotion": pieceToPromoteTo});
  refreshBoard == null ? this._throwNotAttachedException() : refreshBoard();
}