isExcluded method
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),
);
}