charAt method

String charAt(
  1. int index
)

Returns the character at the specified index in a string.

Example :

print('This'.charAt(0)); // 'T'
print('This'.charAt(3)); // 's'

Throws an RangeError if index is negative or greater than String's length.

Implementation

String charAt(int index) => iterable.elementAt(index);