ComparisonResult class

Result of comparing code keys against JSON translation files.

Constructors

ComparisonResult({required Set<String> missingInJson, required Set<String> orphanedInJson, required Set<String> matchedKeys, required Map<String, PlaceholderMismatch> placeholderMismatches, required Map<String, PluralFormIssue> pluralIssues, required Statistics stats})
const

Properties

hasDiscrepancies bool
Returns true if there are any discrepancies.
no setter
hashCode int
The hash code for this object.
no setterinherited
matchedKeys Set<String>
Keys present in both code and JSON.
final
missingInJson Set<String>
Keys found in code but missing from JSON files.
final
orphanedInJson Set<String>
Keys in JSON files but not found in code (orphaned).
final
placeholderMismatches Map<String, PlaceholderMismatch>
Placeholder mismatches between code and JSON.
final
pluralIssues Map<String, PluralFormIssue>
Issues with plural form definitions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats Statistics
Summary statistics.
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