isIgnoredPath method

bool isIgnoredPath(
  1. String path
)

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