static bool isHex(String string) { if (noString(string)) { return false; } return int.tryParse(string, radix: 16) != null; }