toUtf16 method

List<int> toUtf16()

Encodes String as UTF-16.

Implementation

List<int> toUtf16() => codeUnits;