Open bachowsky opened 3 years ago
Future translate(String input) async { final translator = GoogleTranslator(); var result; var translation = await translator .translate(input, to: 'tr') .then((value) => {result = value}); return result; }
this scope gives me Instance of '_Future' but i want to get that translated text.
Future translate(String input) async {
final translator = GoogleTranslator();
var result;
var translation = await translator
.translate(input, to: 'tr')
.then((value) => {result = value});
return result;
}
this scope gives me Instance of '_Future' but i want to get that translated text.