hexHasPrefix function

bool hexHasPrefix(
  1. String value
)

Implementation

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