isExcluded method

bool isExcluded(
  1. String relativePath
)

Whether the file at relativePath, relative to rootDirectory, is left out by excludedSubPaths.

Implementation

bool isExcluded(String relativePath) {
  return excludedSubPaths.any(
    (excluded) =>
        p.equals(excluded, relativePath) ||
        p.isWithin(excluded, relativePath),
  );
}