setLocale method

Future<void> setLocale(
  1. AuthmeLocale locale
)

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;
  }
}