parseStringToU8a function

Uint8List parseStringToU8a(
  1. String str
)

Implementation

Uint8List parseStringToU8a(String str) {
  var s1 = str.replaceAll("[", "");
  var s2 = s1.replaceAll("]", "");
  var newList = s2.split(",");
  return Uint8List.fromList(newList.map((e) => int.parse(e)).toList());
}