isHexColorCode property
bool
get
isHexColorCode
Determines whether a given string represents a valid hexadecimal color code.
Implementation
bool get isHexColorCode =>
_hasMatch(this, r'^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$');