this scope gives me Instance of _Future but I want to get that translated text.
Future<dynamic> translate(String input) async {
final translator = GoogleTranslator();
var result;
var translation = await translator
    .translate(input, to: 'tr')
    .then((value) => {result = value});
  return result;
}
 
                        
Does this work? I guess the
.translatefunction returns anTranslateinstance. You need thetextattribute to get aStringBelow code is wrong!
Also you use a
thenclause and getting the result of translation in tovalueso you don't need to useawaitand set the vartranslationin this case. Or you can useawaitand remove thethen. But you should not use bothawaitandthenfor the same async method.So the below code should be used: