KareeInternationalization class

KareeInternationalization: Class that provides internationalization for your Karee applications.

Constructors

KareeInternationalization()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Operators

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

Static Properties

appLocalization Of<AppLocalization>
@get appLocalization
no setter
currentLocale Locale?
@get currentLocale
no setter

Static Methods

changeLanguage(Locale locale) → void
KareeInternationalization.changeLanguage
init(Locale? locale, List<Locale> supportedLocale) Future<void>
Only for internal call. AppLocalization.init is a static function used to initialize the appLocalization instance in Karee framework.
initAppLocalization() Of<AppLocalization>
This function is used to initialize appLocalization. This function is called both in KareeMaterialApp and KareeModule.initialize(). Because _appLocalization is marked as late and is called in two places, it's important to avoid LateInitializationError. Karee will surround it with a try-catch structure.