toBytes method

List<int> toBytes()

Encodes this string to a UTF-8 byte list.

Implementation

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