What is async and await in Flutter?

 They are used for asynchronous operations (non-blocking code).

Example:

void fetchData() async { var response = await http.get(Uri.parse('https://api.example.com')); print(response.body); }

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?