isHexColor function

bool isHexColor(
  1. String str
)

check if the string is a hexadecimal color

Implementation

bool isHexColor(String str) {
  return _hexColor.hasMatch(str);
}