What is the purpose of the 'async' and 'await' keywords in Dart/Flutter?
Example:
FuturefetchData() async {
var data = await fetchDataFromServer();
print('Data: $data');
}
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.