matchAny function

Pattern matchAny(
  1. Iterable<Pattern> include, {
  2. Iterable<Pattern>? exclude,
})

Returns a Pattern that matches against every pattern in include and returns all the matches. If the input string matches against any pattern in exclude no matches are returned.

Implementation

Pattern matchAny(Iterable<Pattern> include, {Iterable<Pattern>? exclude}) =>
    _MultiPattern(include, exclude: exclude);