charAt method

String charAt(
  1. int index
)

Returns the character at the specified index.

index the index

Implementation

String charAt(int index) {
  String current = _buffer.toString();
  if (index < 0 || index >= current.length) {
    throw RangeError('Index out of range: $index');
  }
  return current[index];
}