setLocale static method
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());
}
}