UnnecessaryNullableConfig.fromAnalysisOptions constructor

UnnecessaryNullableConfig.fromAnalysisOptions(
  1. AnalysisOptions options
)

Creates the config from analysis options.

Implementation

factory UnnecessaryNullableConfig.fromAnalysisOptions(
  AnalysisOptions options,
) =>
    UnnecessaryNullableConfig(
      excludePatterns: const [],
      analyzerExcludePatterns:
          options.readIterableOfString(['analyzer', 'exclude']),
      isMonorepo: false,
      shouldPrintConfig: false,
    );