hexToBytes function

List<int> hexToBytes(
  1. String hexStr
)

Converts the hexadecimal string, which can be prefixed with 0x, to a byte sequence.

Implementation

List<int> hexToBytes(String hexStr) {
  return hex.decode(strip0xHex(hexStr));
}