matches method

bool matches(
  1. Pattern pattern
)

Checks if the string matches the given pattern.

Implementation

bool matches(Pattern pattern) {
  return _matches(this, pattern);
}