setAppLocale method

Future<void> setAppLocale(
  1. String localeTag
)

Persist a new app locale in preferences.

Implementation

Future<void> setAppLocale(String localeTag) async {
  await _preferences.put('appf_locale', localeTag);
  notifyListeners();
}