ActiveLocalization class
Constructors
- ActiveLocalization(Locale locale, {TranslationLoader? loader, AssetBundle? bundle, String assetPath = 'assets/language', Locale? fallbackLocale})
Properties
- assetPath → String
-
final
- bundle → AssetBundle?
-
final
- fallbackLocale → Locale?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loader → TranslationLoader?
-
final
- locale → Locale
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getTranslateValue(
String key) → String? -
load(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
String key, {Map< String, Object?> parameters = const {}, String? fallback}) → String - Format ICU placeholders, plurals and select. Missing keys use fallback/key.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → ActiveLocalization?
Constants
-
delegate
→ const LocalizationsDelegate<
ActiveLocalization> - Legacy en/sw delegate. Prefer an application-owned delegate below.