kCompleteValidHexPattern top-level constant

String const kCompleteValidHexPattern

Regex pattern that matches complete, valid hex colour strings (3, 6, or 8 hex chars, optional leading #).

Implementation

const String kCompleteValidHexPattern =
    r'^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$';