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(
      createAbsolutePatterns(config.excludePatterns, rootPath),
      createAbsolutePatterns(config.analyzerExcludePatterns, rootPath),
      isMonorepo: config.isMonorepo,
    );