setLocale static method

Future<void> setLocale(
  1. Locale locale
)

Implementation

static Future<void> setLocale(Locale locale) async =>
     await _prefs?.setString(_localeKey, locale.languageCode);