static List<int> hex2int(String hexStr) { return RegExp(r"[0-9a-fA-F]{2}") .allMatches(hexStr) .map((e) => int.parse(e.group(0)!, radix: 16)) .toList(); }