AnalyzerResolvers constructor Null safety
Lazily creates and manages a single
can be shared across
_analysisOptions is provided, then an empty one is used.
sdkSummaryGenerator is provided, a default one is used that only
works for typical
_packageConfig is provided, then one is created from the current
_packageConfig is not used for path resolution, it is
primarily used to get the language versions. Any other data (including
extra data), may be passed to the analyzer on an as needed basis.
AnalyzerResolvers( [AnalysisOptions? analysisOptions, Future<String> Function()? sdkSummaryGenerator, this._packageConfig]) : _analysisOptions = analysisOptions ?? (AnalysisOptionsImpl() ..contextFeatures = _featureSet(enableExperiments: enabledExperiments)), _sdkSummaryGenerator = sdkSummaryGenerator ?? _defaultSdkSummaryGenerator;