PlinthLocalizations class

Reaches the PlinthStrings in scope.

Works with nothing registered. Most apps will never add a delegate, and a library whose accessibility labels vanish unless you opt in has made things worse rather than better — so of falls back to the English defaults rather than asserting. That is the opposite of MaterialLocalizations, which throws, and the difference is deliberate: Material's strings are load-bearing for its own widgets, where these are a translation seam over labels that already worked.

Constructors

PlinthLocalizations(PlinthStrings strings)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strings → PlinthStrings
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

Static Methods

of(BuildContext context) → PlinthStrings
The strings in scope, or the English defaults if none are.
override(PlinthStrings strings) → LocalizationsDelegate<PlinthLocalizations>
A delegate supplying strings instead of the defaults.

Constants

delegate → const LocalizationsDelegate<PlinthLocalizations>
The delegate that supplies the built-in English.