matches method

bool matches(
  1. Set<String> activeTokens
)

Returns true if all conditions appear in the active context.

Implementation

bool matches(Set<String> activeTokens) =>
    conditions.every((c) => activeTokens.any(
          (t) => t.toLowerCase().contains(c.toLowerCase()),
        ));