hasPatterns method

bool hasPatterns({
  1. required List<String> values,
  2. required List<RegExp> patterns,
})

Check if has patterns

Implementation

bool hasPatterns(
    {required List<String> values, required List<RegExp> patterns}) {
  final matchList =
      values.where((path) => hasPattern(value: path, patterns: patterns));
  final hasPatterns = matchList.isNotEmpty;
  return hasPatterns;
}