LocalStorage class
Constructors
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 Methods
-
loadLanguage(
) → Future< void> -
Gets the current language codeString (example.: hu) from
SharedPreferencesusing the translatronLang key -
loadLanguageVersion(
) → Future< String> -
Gets the current language versionString from
SharedPreferencesusing the translatronLanguageVersion key -
persistLanguage(
String lang) → Future< void> -
Persists the current language codeString (example.: hu) to
SharedPreferencesusing the translatronLang key -
persistLanguageVersion(
String langVersion) → Future< void> -
Persist a new language versionString into
SharedPreferencesusing the translatronLanguageVersion key