encodeUtf8 function

List<int?> encodeUtf8(
  1. String str
)

Produce a sequence of UTF-8 encoded bytes from the provided string.

Implementation

List<int?> encodeUtf8(String str) => codepointsToUtf8(stringToCodepoints(str));