hasMatch static method

bool hasMatch(
  1. String? s,
  2. String p
)

has match return bool for pattern matching

Implementation

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