kValidHexPattern top-level constant
String
const kValidHexPattern
Regex pattern that matches partial hex colour strings (1-8 hex chars,
optional leading #).
Implementation
const String kValidHexPattern = r'^#?[0-9a-fA-F]{1,8}';