isHexString static method

bool isHexString(
  1. String hex
)

Implementation

static bool isHexString(String hex) {
  var reg = RegExp(r'^[a-f0-9]+$');
  return reg.hasMatch(hex);
}