ExportedKey class
One key, everything the run learned about it.
Constructors
-
ExportedKey({required String catalog, required String key, Map<
String, String> values = const {}, ExportedShot? representative, List<ExportedShot> occurrences = const [], ExportedMaxLength? maxLength}) -
const
Properties
- catalog → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
catalog/key— what a service knows the string as, and how TranslationExport.operator [] addresses it.no setter - key → String
-
final
- maxLength → ExportedMaxLength?
-
What the max-length probe measured, when one ran and saw this key.
final
-
occurrences
→ List<
ExportedShot> -
Everywhere else it was seen, representative included.
final
- representative → ExportedShot?
-
The one shot worth showing a translator, or null when the key was
declared and never seen. Ranked, not first-found — see the design.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Map<
String, String> -
What the catalog files say, per locale.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → ExportedKey