utf8Encode static method

Uint8List utf8Encode(
  1. String s
)

UTF-8 encode helper (labels, non-secrets).

HINT: Prefer using ivLabel and tagLabel for those constants.

Implementation

static Uint8List utf8Encode(String s) => Uint8List.fromList(utf8.encode(s));