hexToBytes function

Uint8List hexToBytes(
  1. String hexStr
)

Implementation

Uint8List hexToBytes(String hexStr) {
  final bytes = hex.decode(stripHexPrefix(hexStr));
  if (bytes is Uint8List) return bytes;
  return Uint8List.fromList(bytes);
}