encode method

Uint8List encode(
  1. String string
)
override

Encodes the string as UTF-8.

Implementation

Uint8List encode(String string) {
  return const Utf8Encoder().convert(string);
}