TGLocalization class Null safety

Localization for each locale loads values from json file.

Constructors

TGLocalization(Locale? locale)

Properties

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

Methods

load() Future<bool>
Load Json File name based on Language Code and Country Code. Example: "{languageCode}_{countryCode}.json" > "en_us.json"
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
text(String key) String
Text related to localised key. In case of entry won't found, will return back key as text.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

LOCALE_PATH → const String
"assets/locale/"