String.fromCharCode factory constructor

String.fromCharCode(int charCode)

Allocates a new String for the specified charCode.

If the charCode can be represented by a single UTF-16 code unit, the new string contains a single code unit. Otherwise, the length is 2 and the code units form a surrogate pair. See documentation for fromCharCodes.

Creating a String with half of a surrogate pair is allowed.

Source

external factory String.fromCharCode(int charCode);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/String/String.fromCharCode.html