hexToBytes static method

Uint8List hexToBytes(
  1. String hex
)

Converts a hex string to a Uint8List

Implementation

static Uint8List hexToBytes(String hex) {
  return Uint8List.fromList(HEX.decode(hex));
}