UnnecessaryNullableConfig.fromArgs constructor

UnnecessaryNullableConfig.fromArgs(
  1. Iterable<String> excludePatterns, {
  2. required bool isMonorepo,
  3. required bool shouldPrintConfig,
})

Creates the config from cli args.

Implementation

factory UnnecessaryNullableConfig.fromArgs(
  Iterable<String> excludePatterns, {
  required bool isMonorepo,
  required bool shouldPrintConfig,
}) =>
    UnnecessaryNullableConfig(
      shouldPrintConfig: shouldPrintConfig,
      excludePatterns: excludePatterns,
      analyzerExcludePatterns: const [],
      isMonorepo: isMonorepo,
    );