Encode an hexadecimal string into a Uint8List.
Uint8List hexToUint8List(String hexString) { final List<int> bytes = Base16Encoder.instance.decode(hexString); return Uint8List.fromList(bytes); }