parseStringToU8a function

Uint8List parseStringToU8a(
  1. String str
)

Implementation

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