@override Future<String> getDominantLanguage(String text) async { final result = await methodChannel .invokeMethod<String>('getDominantLanguage', {'text': text}) ?? ""; return result; }