setLocale method
Implementation
Future<void> setLocale(AuthmeLocale locale) async {
try {
await _channel.invokeMethod('setLocale', {
'locale': Platform.isIOS ? locale.toIOSLocale() : locale.toAndroidLocale(),
});
} on PlatformException catch (e) {
log("Failed to set locale: ${e.message}");
rethrow;
}
}