ContextRoot class

Information about the root directory associated with an analysis context.

Clients may not extend, implement or mix-in this class.


ContextRoot(String root, List<String> exclude, {@required Context pathContext})
Initialize a newly created context root.


exclude List<String>
A list of the absolute paths of files and directories within the root directory that should not be analyzed.
hashCode int
The hash code for this object. [...]
read-only, override
optionsFilePath String
An informative value for the file path that the analysis options were read from. This value can be null if there is no analysis options file or if the location of the file has not yet been discovered.
read / write
pathContext Context
The path context to use when manipulating paths.
root String
The absolute path of the root directory containing the files to be analyzed.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


containsFile(String filePath) bool
Return true if the file with the given filePath is contained within this context root. A file contained in a context root if it is within the context root neither explicitly excluded or within one of the excluded directories.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(dynamic other) bool
The equality operator. [...]