indexToPathNotation static method

String indexToPathNotation(
  1. int index
)

Implementation

static String indexToPathNotation(int index) {
  // TODO: create proper error class
  if (index >= maxIndex) {
    throw Error();
  }

  return index < hardenedIndex
      ? index.toString()
      : '${index - hardenedIndex}\'';
}