hexColor property

RegExp hexColor
final

Matches a hex color code (#RGB or #RRGGBB, with or without #).

Implementation

static final RegExp hexColor = RegExp(
  r'^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$',
);