coordinatesToSquareName function

String coordinatesToSquareName(
  1. int file,
  2. int rank
)

Implementation

String coordinatesToSquareName(int file, int rank) {
  return String.fromCharCode('a'.codeUnitAt(0) + file) +
      String.fromCharCode('1'.codeUnitAt(0) + rank);
}