isHexPrefixed function

bool isHexPrefixed(
  1. String str
)

Implementation

bool isHexPrefixed(String str) {
  ArgumentError.checkNotNull(str);

  return str.substring(0, 2) == '0x';
}