isHex static method

bool isHex(
  1. String string
)

Implementation

static bool isHex(String string) {
  if (noString(string)) {
    return false;
  }
  return int.tryParse(string, radix: 16) != null;
}