ContextLocator class Null safety

Determines the list of analysis contexts that can be used to analyze the files and folders that should be analyzed given a list of included files and folders and a list of excluded files and folders.

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


ContextLocator({ResourceProvider resourceProvider})
Initialize a newly created context locator. If a resourceProvider is supplied, it will be used to access the file system. Otherwise the default resource provider will be used.


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


locateRoots({required List<String> includedPaths, List<String>? excludedPaths, String? optionsFile, String? packagesFile}) List<ContextRoot>
Return a list of the context roots that should be used to analyze the files that are included by the list of includedPaths and not excluded by the list of excludedPaths. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


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