parseStringToU8a function
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());
}