isHexColor static method

bool isHexColor(
  1. String value
)

check if the string value is a hexadecimal color

Implementation

static bool isHexColor(String value) {
  return _hexcolor.hasMatch(value);
}