LocalizationDelegate class
- Inheritance
-
- Object
- LocalizationsDelegate<
Localization> - LocalizationDelegate
Properties
- currentLocale → Locale
-
no setter
- fallbackLocale → Locale
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onLocaleChanged ↔ LocaleChangedCallback?
-
getter/setter pair
- preferences → ITranslatePreferences?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedLocales
→ List<
Locale> -
final
-
supportedLocalesMap
→ Map<
Locale, String> -
final
- type → Type
-
The type of the object returned by the load method, T by default.
no setterinherited
Methods
-
changeLocale(
Locale newLocale) → Future -
isSupported(
Locale? locale) → bool -
Whether resources for the given locale can be loaded by this delegate.
override
-
load(
Locale newLocale) → Future< Localization> -
Start loading the resources for
locale
. The returned future completes when the resources have finished loading.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldReload(
covariant LocalizationsDelegate< Localization> 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
Static Methods
-
create(
{required String fallbackLocale, required List< String> supportedLocales, String basePath = Constants.localizedAssetsPath, ITranslatePreferences? preferences}) → Future<LocalizationDelegate>