getKey method

String getKey(
  1. int index
)

Implementation

String getKey(int index) {
  if (keyLength == 0) throw StateError('The LargeIterable has no keys.');
  index = offset(index);
  if (index >= startIndex && index < offset(keyLength)) {
    return _keys[index];
  }
  throw IndexError.withLength(index - startIndex, keyLength);
}