matches function Null safety

Matcher matches(
  1. Pattern re
)

Returns a matcher that matches if the match argument is a string and matches the regular expression given by re.

re can be a RegExp instance or a String; in the latter case it will be used to create a RegExp instance.

Implementation

Matcher matches(Pattern re) => _MatchesRegExp(re);