LanguageController class

Constructors

LanguageController({required String child, required String defaultPrefix, String? initialPrefix, String? commonRoute})
factory

Properties

child String
Child in RT Database
final
commonRoute String?
Route common in to screens
final
currentCommon Map
Current common
no setter
currentValue Map
Current selected language
no setter
defaultPrefix String
Default prefix
final
hashCode int
The hash code for this object.
no setterinherited
lastPrefix String?
Last prefix selected
getter/setter pair
outStreamList Stream
Stream of languages
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changeLanguage(String prefix) Future<void>
Change current language passing prefix ex: changeLanguage('en_US')
dispose() → void
getListLanguage() List<Map>
Get list of languages in route "config" inside jsons
init() Future<void>
Required called before all to load
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAlertChangeLanguage({required BuildContext context, required String title, required String btnNegative}) Future
Show alert to change language
toString() String
A string representation of this object.
inherited

Operators

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