bool hexHasPrefix(String value) { return !!(value is String && isHex(value, -1, true) && value.substring(0, 2) == '0x'); }