Why we use async and await in Dart?

async keyword tells dart that this function might use asynchronous logic . So void main has the async keyword. await keyword tells dart that the following statement will return a Future . The Future should be completed and then the code below will be executed.

Sizin İçin Seçtik  What is a snapshot in Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *