setLocale static method

Future<void> setLocale(
  1. Locale locale
)

Sets the user locale.

Implementation

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