setLocale static method

Future<bool> setLocale(
  1. String languageCode
)

to set selected local language

Implementation

static Future<bool> setLocale(String languageCode) async {
  return await _prefsInstance!.setString("languageCode", languageCode);
}