matches method Null safety

bool matches(
  1. Element candidate
)

Returns true if the given element matches the pattern.

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

Implementation

bool matches(Element candidate);