hexColor constant
RegexValidator
const hexColor
Implementation
static const hexColor = RegexValidator(
name: 'hex color',
pattern: r'^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$',
example: '#ff0000',
);