isIgnoredPath method
Implementation
bool isIgnoredPath(String path) {
for (var p in ignorePaths) {
if (p is RegExp) {
if (p.hasMatch(path)) {
return true;
}
} else {
if (p == path) {
return true;
}
}
}
return false;
}