matcher method

  1. @override
bool matcher(
  1. Token token
)
override

Implementation

@override
bool matcher(Token token) =>
    token.type == 'color' &&
    (token.valueAsString?.startsWith('#') == true ||
        token.valueAsString?.startsWith('rgb') == true ||
        token.valueAsString?.startsWith('hsl') == true);