AppLocalizations class
Base class to handle localization in the project
Constructors
- AppLocalizations(Locale locale)
Properties
Methods
-
load(
) → Future - loads the locale file from the /lang directory
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trans(
String key) → String? -
Translate strings with the
key
used in the .json file.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → AppLocalizations?