setLocale static method
Sets the user locale.
Implementation
static Future<void> setLocale(Locale locale) async {
String localeString = locale.toString();
return await _dartToNativeMethodChannel.invokeMethod(
'setLocale', localeString);
}