menu
flutter_locales package
documentation
flutter_locales.dart
PreferenceUtils
setLocale method
setLocale method
dark_mode
light_mode
setLocale
method
dynamic
setLocale
(
String
lng
)
Implementation
setLocale(String lng) { prefs.setString('language', lng); Locales.selectedLocale = Locale(lng); }
flutter_locales package
documentation
flutter_locales
PreferenceUtils
setLocale method
PreferenceUtils class