hasMatch function

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

Implementation

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