isHexadecimal property

RegPattern isHexadecimal
final

Checks if string is hexadecimal. Example: HexColor = #12F

Implementation

static final isHexadecimal =
    r'^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$'.regPattern;