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