hexToUint8List function

Uint8List hexToUint8List(
  1. String hexString
)

Encode an hexadecimal string into a Uint8List @param {Uint8List} hexString Hexadecimal string

Implementation

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