AnalysisContextCollection constructor

AnalysisContextCollection({
  1. required List<String> includedPaths,
  2. List<String>? excludedPaths,
  3. ResourceProvider? resourceProvider,
  4. String? sdkPath,
})

Initialize a newly created collection of analysis contexts that can analyze the files that are included by the list of includedPaths.

All paths must be absolute and normalized.

If a resourceProvider is given, then it will be used to access the file system, otherwise the default resource provider will be used.

If sdkPath is given, then Dart SDK at this path will be used, otherwise the default Dart SDK will be used.

Implementation

factory AnalysisContextCollection({
  required List<String> includedPaths,
  List<String>? excludedPaths,
  ResourceProvider? resourceProvider,
  String? sdkPath,
}) = AnalysisContextCollectionImpl;