hasMatch method

bool hasMatch(
  1. String pattern
)

RegExp Match pattern

Implementation

bool hasMatch(String pattern) {
  return RegExp(pattern).hasMatch(this);
}