hasMatch method

bool hasMatch(
  1. String pattern
)

Checks whether the string contains a match for the given pattern.

Implementation

bool hasMatch(String pattern) => RegExp(pattern).hasMatch(this);