setLanguage static method
setLanguage
Set the language for the Gleap Report Flow. Otherwise the default language is used. Supported Languages "en", "es", "fr", "it", "de", "nl", "cz"
Params
language
Country Code eg. "cz," "en", "de", "es", "nl"
Available Platforms
Android, iOS, Web
Implementation
static Future<void> setLanguage({required String language}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint('setLanguage is not available for current operating system');
return;
}
await _channel.invokeMethod('setLanguage', {'language': language});
}