ExtractionResult class

Result of scanning source files for i18n keys.

Constructors

ExtractionResult({required List<ExtractedKey> keys, required Map<String, List<ExtractedKey>> byFile, required Set<String> uniqueKeys, required Set<String> pluralKeys, required Map<String, Set<String>> placeholdersByKey, required int filesScanned, required Duration scanDuration, List<ScanError> errors = const []})
const
ExtractionResult.empty()
Create an empty result.
factory

Properties

byFile Map<String, List<ExtractedKey>>
Keys grouped by file path.
final
errors List<ScanError>
Errors encountered during scanning.
final
filesScanned int
Number of files scanned.
final
hashCode int
The hash code for this object.
no setterinherited
keys List<ExtractedKey>
All extracted keys with their locations.
final
placeholdersByKey Map<String, Set<String>>
Placeholders detected for each key.
final
pluralKeys Set<String>
Keys that are used with plural calls (tn).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanDuration Duration
Duration of the scan operation.
final
uniqueKeys Set<String>
Unique key strings (deduplicated).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited