I translate the words in the text using onTap, but after a while I get an error because there are too many requests. How can I solve this? If I need to use the sleep function, how do I use it?
"onTap: () {
appState.translator
.translate(e, from: 'tr', to: 'en')
.then((val) {
Fluttertoast.showToast(msg: val.text);
}); "