toUtf8 method

List<int> toUtf8()

Encodes String as UTF-8.

Implementation

List<int> toUtf8() => utf8.encode(this);