AppLocalizations class

Base class to handle localization in the project

Constructors

AppLocalizations(Locale locale)

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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?