convert method

Converts string to its UTF-8 code units (a list of unsigned 8-bit integers).

List<int> convert(
String string,
[int start = 0,
int end]
)

Converts string to its UTF-8 code units (a list of unsigned 8-bit integers).

If start and end are provided, only the substring string.substring(start, end) is converted.