tAt.html">codeUnitAt</a> or the <a href="dart-core/String/codeUnits.html">codeUnits</a> members:</p>
<pre class="language-dart"><code>string = 'Dart';
string.codeUnitAt(0); // 68
string.codeUnits;     // [68, 97, 114, 116]
</code></pre>
<p>The string representation of code units is accessible through the index
operator:</p>
<pre class="language-dart"><code>string[0];            // 'D'
</code></pre>
<p>The characters of a string are encoded in UTF-16. Decoding UTF-16, which
combines surrogate pairs, yields U