string function

Iterable<String> string (String string)

Returns an iterable over the characters of the string.

Implementation

Iterable<String> string(String string) {
  return string.codeUnits.map((code) => new String.fromCharCode(code));
}