isHexadecimalColor property
bool
get
isHexadecimalColor
Implementation
bool get isHexadecimalColor {
final hexColorRegex = RegExp(r'^#?([0-9a-fA-F]{8}|[0-9a-fA-F]{6}|[0-9a-fA-F]{3})$');
return hexColorRegex.hasMatch(this);
}