Future<void> setLocale(String locale) async { SharedPreferences prefs = await SharedPreferences.getInstance(); prefs.setString(LOCALE,locale); }