isHexadecimal property
bool
get
isHexadecimal
Returns true
if string is Hexadecimal string.
Hexadecimal String: only contains digits 0-9 and
characters A-F or a-f
"xyz".isHexadecimal; // false
"12E".isHexadecimal; // true
Implementation
bool get isHexadecimal => toInt(base: 16) != null;