iterable property

Iterable<String> iterable

Returns an iterable that returns every character in this string, split along UTF-16 code units.

This iterable will return each individial code unit as a separate element. As such, rune boundaries may not be respected and any surrogate pairs will be divided.

Implementation

Iterable<String> get iterable {
  return codeUnits.map((u) => String.fromCharCode(u));
}