I18NextLocalizationDelegate class

A factory for the localized resource I18Next that is loaded by a Localizations widget.

See LocalizationsDelegate for the base lifecycle calls.

Inheritance

Constructors

I18NextLocalizationDelegate({required List<Locale> locales, required LocalizationDataSource dataSource, ResourceStore? resourceStore, I18NextOptions? options})

Properties

dataSource LocalizationDataSource
The data source that provides the localization data to this delegate.
final
hashCode int
The hash code for this object.
no setterinherited
locales List<Locale>
The list of supported locales by this delegate.
final
options I18NextOptions?
The options given to the I18Next instance.
final
resourceStore ResourceStore
Where the resources are kept and managed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The type of the object returned by the load method, T by default.
no setterinherited

Methods

isSupported(Locale locale) bool
Whether resources for the given locale can be loaded by this delegate.
override
load(Locale locale) Future<I18Next>
Start loading the resources for locale. The returned future completes when the resources have finished loading.
override
normalizeLocale(Locale locale) Locale
Normalizes locale in case it is not fully supported, but a shorter or specific one might be.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldReload(covariant I18NextLocalizationDelegate old) bool
Returns true if the resources for this delegate should be loaded again by calling the load method.
override
toString() String
A string representation of this object.
inherited

Operators

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