encodeString method

List<int> encodeString(
  1. String s
)

Encodes a String s with the configured Encoding

  • s: The String to encode

Returns the encoded String as list of bytes

Implementation

List<int> encodeString(String s) {
  return _stringEncoder.encode(s);
}