toUtf8 property

List<int> get toUtf8

Converts a String to a List<int> of bytes with utf8 encoding.

Implementation

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