What is a Future in Flutter?

 Future represents an asynchronous computation that will complete later.

Example:

Future<String> getData() async { return "Hello World"; }

Use with await:

String data = await getData();

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?