LL class

The handle a screen holds. Immutable; content is read through the client, so a handle captured in one build renders the release current at the moment t is called.

Annotations

Properties

hashCode → int
The hash code for this object.
no setterinherited
languageCode → String
The MANIFEST's language code — pt-BR, never Locale.toString()'s pt_BR. Content is keyed by this, never by a Locale object.
final
locale → Locale
The Flutter locale this handle is scoped to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textDirection → TextDirection
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parts(String key, {Map<String, Object?>? args, String? segment}) → List<LLMessagePart>
t(String key, {Map<String, Object?>? args, String? segment}) → String
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

bindingsOf(BuildContext context, {bool overrideAppDirection = false}) → LLBindings
The three MaterialApp arguments, in one call. Depends on the language and the language list, so the app rebuilds on a language switch and on nothing else.
directionOf(BuildContext context) → TextDirection
The manifest's direction for the active language — never inferred from the locale code.
fontFamilyOf(BuildContext context) → String?
languageOf(BuildContext context) → String
languagesOf(BuildContext context) → List<LLLanguageSummary>
The published languages, for a picker. A language added in LexioLab shows up here without an app release.
of(BuildContext context) → LL
Coarse: depends on every change. Prefer segment in anything that renders repeatedly.
segment(BuildContext context, String segment, {bool ensure = true}) → LLSegmentTranslations
THE preferred accessor. Depends on one segment, and asks for it to be loaded.
statusOf(BuildContext context) → LLStatus?

Constants

none → const LL
Degraded handle used when there is no scope above: t returns the key, so a widget rendered outside the scope shows something rather than throwing in someone's build method.