AppLocalizations class

Provides localized strings and translation utilities for the Amwal SDK.

This class loads and manages translations for supported locales.

Constructors

AppLocalizations.new(Locale locale)
Returns the singleton instance for the given locale.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEnLocale bool
Returns true if the current locale is English.
no setter
locale Locale
The current locale for localization.
final
localizedStrings Map<String, String>
The map of localized strings for the current locale.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<void>
Loads the localized strings for the current locale.
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) String?
Translates the given key to the localized string, if available.

Operators

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

Static Methods

of(BuildContext context) AppLocalizations?
Gets the AppLocalizations instance from the context.

Constants

delegate → const LocalizationsDelegate<AppLocalizations>
The delegate for loading localized resources.