AppLocalizations class

Constructors

AppLocalizations(Locale locale)

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → Locale
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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.