encode static method

Uint8List encode(
  1. String string
)

Encodes a string to UTF-8 binary data.

string is the string to encode.

Returns the UTF-8 encoded bytes.

Implementation

static Uint8List encode(String string) {
  return coder!.encode(string);
}