isValidHex function

bool isValidHex(
  1. String hex
)

Implementation

bool isValidHex(String hex) {
  return hexRegex.hasMatch(hex);
}