Asynchrony support
Dart libraries are full of functions thatreturn Future or Stream objects.These functions are asynchronous:they return after setting upa possibly time-consuming operation(such as I/O),without waiting for that operation to complete.
The async
and await
keywords support asynchronous programming,letting you write asynchronous code thatlooks similar to synchronous code.