What is async and await in Flutter?
They are used for asynchronous operations (non-blocking code).
Example:
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
Post a Comment