hasMatch method

bool hasMatch(
  1. String value,
  2. String pattern
)

Implementation

static bool hasMatch(String value, String pattern) {
  return (value == null) ? false : RegExp(pattern).hasMatch(value);
}