convertHexString2Bytes function

Iterable<int> convertHexString2Bytes(
  1. String hexString
)

Implementation

Iterable<int> convertHexString2Bytes(String hexString) {
  return RegExp(r'.{1,2}').allMatches(hexString).map((x) {
    return int.tryParse(x[0], radix: 16);
  });
}