isHexColor function

bool isHexColor(
  1. String input
)

check if the string input is a hexadecimal color

Implementation

bool isHexColor(String input) {
  return _regExp.hasMatch(input);
}