hexadecimal constant

Pattern const hexadecimal

Hexadecimal regex

Implementation

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