includesFile method

bool includesFile(
  1. String file
)

Check if this collection includes a file path.

Implementation

bool includesFile(String file) {
  return files.contains(file) ||
      directories.any((d) => d.isWithin(file, isDir: false));
}