hexEqual static method

bool hexEqual(
  1. String a,
  2. String b
)

Implementation

static bool hexEqual(String a, String b) {
  if (!isHexBytes(a) || !isHexBytes(b)) {
    throw ArgumentException("Invalid hex string.");
  }
  return strip0x(a.toLowerCase()) == strip0x(b.toLowerCase());
}