AppLocalizations class
Constructors
- AppLocalizations.new(Locale locale)
Properties
Methods
-
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, dynamic> ? args]) → String -
Returns the translated string for the given
key
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
load(
Locale locale, {String? fallbackLocale}) → Future< AppLocalizations> -
Loads the localization for the current
locale
. -
of(
BuildContext context) → AppLocalizations - Retrieves the current AppLocalizations instance.