A factory for a set of localized resources of type T, to be loaded by a Localizations widget.

Typical applications have one Localizations widget which is created by the WidgetsApp and configured with the app's localizationsDelegates parameter (a list of delegates). The delegate's type is used to identify the object created by an individual delegate's load method.

Constructors

LocalizationsDelegate()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

type Type
The type of the object returned by the load method, T by default. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

load(Locale locale) Future<T>
Start loading the resources for locale. The returned future completes when the resources have finished loading. [...]
shouldReload(LocalizationsDelegate<T> old) bool
Returns true if the resources for this delegate should be loaded again by calling the load method. [...]
toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited