UnusedFilesConfig.fromArgs constructor

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

Creates the config from cli args.

Implementation

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