CollectorConfig class final
Configuration for the string collector utility.
- Annotations
-
- @immutable
Constructors
-
CollectorConfig.new({required String inputRoot, required String outputRoot, required List<
String> excludePaths, required String preservePathFrom, required List<String> patternsExcludeLine, required String patternsStringRegex}) -
Creates a new CollectorConfig instance.
const
- CollectorConfig.withFallback({required YamlMap? yaml, required YamlMap fallback})
-
Factory constructor that parses a YAML map into CollectorConfig.
Uses a fallback configuration if the provided YAML is missing any fields.
factory
Properties
-
excludePaths
→ List<
String> -
Path substrings to exclude (e.g., "test", "mock").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputRoot → String
-
The root directory to start scanning for Dart files.
final
- outputRoot → String
-
Root output directory for collected strings.
final
-
patternsExcludeLine
→ List<
String> -
Line-level exclusion patterns (as raw regex strings).
final
- patternsStringRegex → String
-
The regex pattern to detect translatable strings.
final
- preservePathFrom → String
-
Optional anchor directory to preserve path structure from.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited