charAt method
Implementation
String charAt(int position) {
if (position < 0 || position >= _length) {
throw RangeError('Invalid position: $position for length $_length');
}
if (_root == null) throw StateError('Empty rope');
return _root!.charAt(position);
}