What is a Future in Flutter?
Future represents an asynchronous computation that will complete later.
Example:
Use with await:
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
Post a Comment