Ques 1
What is the purpose of the 'async' and 'await' keywords in Dart/Flutter?
'async' and 'await' are used for handling asynchronous operations in Dart/Flutter. 'async' is used to mark a function as asynchronous, and 'await' is used to wait for the result of an asynchronous operation.
Example:
FuturefetchData() async {
var data = await fetchDataFromServer();
print('Data: $data');
}
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
도움이 되었나요?
Add Comment
View Comments