Uint8List fromHexString(String hexString) => Uint8List.fromList( (RegExp(r'.{1,2}').allMatches(hexString).toList()).map<int>((byte) { return int.parse(byte.group(0)!, radix: 16); }).toList());