Determines if a string is an hexadecimal.
bool isHex(String inputString) { final hexadecimal = RegExp(r'^([0-9A-Fa-f])*$'); if (!hexadecimal.hasMatch(inputString)) { return false; } return true; }