What the catalogs said, and how to ask what a rendered string came from.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- expandPercent ↔ int?
-
Probe mode: pad every value handed back, scaled by this percentage of
each key's own ceiling — see expansionLength.
getter/setter pair
-
read
→ Map<
String, Map< String, String> > -
Every key each catalog was asked for, with the value it gave.
no setter
- recording ↔ bool
-
Whether reads are being tied to their keys. Set by
runScenarios; false under a bareflutter testthat never goes through it, where indexTranslations is then exactly the identity function.getter/setter pair -
sources
→ List<
String? Function(Object widget)> -
The widget properties to read text off, in registration order.
final
Static Methods
-
expansionLength(
int baseLength, int percent) → int -
How many characters expandPercent adds to a value of
baseLength:percentof the value's own ceiling, and the ceiling depends on how short it is. -
expansionPadding(
String catalog, String key, int length) → String -
The padding expandPercent appends to one key's value: exactly
lengthcharacters with a floor of 2, sliced from a fixed alphabet at an offset hashed from the key. Size it with expansionLength. -
keyOf(
String rendered) → TranslationKey? - The key that produced these exact words, or null when they came from somewhere else.
-
record(
String catalog, String key, String value, {bool expansion = false}) → String -
The token for one read:
==the value, and its own object. -
reset(
) → void