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