in my code, there are functions which do async operations. so I have marked these called functions as async in the function body, I am using await
for all the async operations. Is there any clear way to do that?
For example, I want to wrap all async operations with only one await
keyword:
Future<void> _clearTables()async{
await{
dbHelper.deleteDailyQuestions();
dbHelper.deletePureCards();
dbHelper.deleteStudiedCards();
}
}