strToBytes method

Uint8List strToBytes (String str)

Implementation

static Uint8List strToBytes(String str) {
  return Uint8List.fromList(Utf8Encoder().convert(str));
}