hexToUint8List function

Uint8List hexToUint8List(
  1. String hexString
)

Encode an hexadecimal string into a Uint8List.

Implementation

Uint8List hexToUint8List(String hexString) {
  final List<int> bytes = Base16Encoder.instance.decode(hexString);
  return Uint8List.fromList(bytes);
}