hasPatterns method
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;
}