AppLocalizations class Null safety

Base class to handle localization in the project

Constructors

AppLocalizations(Locale locale)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
locale Locale
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

load() Future
loads the locale file from the /lang directory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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?

Constants

delegate → const LocalizationsDelegate<AppLocalizations>
_AppLocalizationsDelegate()