matches method

B matches(
  1. RegExp pattern, {
  2. String? message,
})

Validate that the string matches the provided regular expression pattern.

Implementation

B matches(RegExp pattern, {String? message}) {
  return add(stringMatchesPattern(pattern), message: message);
}