encodeString static method

List<int> encodeString(
  1. String s
)

Implementation

static List<int> encodeString(String s) => encodeBytes(utf8.encode(s));