chars method

Iter<String> chars()

An Iterator of code units of this String represented as individual Strings

Implementation

@pragma("vm:prefer-inline")
Iter<String> chars() {
  return Iter.fromIterable(codeUnits.map((e) => String.fromCharCode(e)));
}