matches method

  1. @override
bool matches(
  1. Element candidate
)
override

Returns true if the given element matches the pattern.

When implementing a MatchFinder, this is the main method to override.

Implementation

@override
bool matches(Element candidate) {
  return (finder as MatchFinder).matches(candidate);
}