match method

bool match(
  1. String string
)

Returns true if pattern matches thes string.

Implementation

bool match(String string) {
  return allMatches(string).isNotEmpty;
}