getUnnecessaryNullableConfig static method

UnnecessaryNullableAnalysisConfig getUnnecessaryNullableConfig(
  1. UnnecessaryNullableConfig config,
  2. String rootPath
)

Creates an unnecessary nullable config from given raw config.

Implementation

static UnnecessaryNullableAnalysisConfig getUnnecessaryNullableConfig(
  UnnecessaryNullableConfig config,
  String rootPath,
) =>
    UnnecessaryNullableAnalysisConfig(
      prepareExcludes(config.excludePatterns, rootPath),
      prepareExcludes(config.analyzerExcludePatterns, rootPath),
    );