static bool isHexBytes(String v) { final RegExp hexBytesRegex = RegExp(r'^(0x|0X)?([0-9A-Fa-f]{2})+$'); return hexBytesRegex.hasMatch(v); }