FileSelection class

Utility class for selecting Dart files within a project, with support for ignoring specified paths.

Constructors

FileSelection.new(String rootPath)
Creates a FileSelection instance rooted at the given rootPath.

Properties

hashCode int
The hash code for this object.
no setterinherited
ignoreList List<String>
List of paths to ignore during file selection.
getter/setter pair
rootDirectory Directory
The root directory to scan, typically lib/.
getter/setter pair
rootPath String
The base project path provided during initialization.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

extractFiles() List<File>
Extracts all .dart files under rootDirectory, excluding ignored files.
getDepIgnore() List<String>
Reads the .depignore file and returns a list of paths to ignore.
isIgnored(String fPath) bool
Checks whether a given file path fPath is in the ignore list.
isSameOrChild(String refPath, String filePath) bool
Determines whether filePath is exactly refPath or a child of it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited