LanguageService class

Constructors

LanguageService(List<LanguageModel> supportedLanguages)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedLanguage Future<LanguageModel>
no setter
selectedLocale Future<Locale?>
no setter
supportedLanguages List<LanguageModel>
final

Methods

changeAppLanguage(BuildContext context, Locale locale) Future<void>
getLanguage(String? locale) LanguageModel
getLocale(String? locale) Locale?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setupLanguage(BuildContext context) → void
toString() String
A string representation of this object.
inherited

Operators

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