setLocale static method

Future<void> setLocale(
  1. String locale
)

Implementation

static Future<void> setLocale(String locale) async {
  try {
    await platform
        .invokeMethod('setLocale', <String, String>{'locale': locale});
  } on PlatformException catch (e) {
    showToast(e.message.toString());
  }
}