isValidHexColor property

bool get isValidHexColor

Implementation

bool get isValidHexColor {
  return RegExp(r"\#?[0-9a-fA-F]{6}").hasMatch(this);
}