UnusedL10nConfig.fromArgs constructor

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

Creates the config from cli args.

Implementation

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