Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
void main() { Future
drink = Future.delayed(Duration(seconds: 2), () => 'Coffee'); Future
food = Future.delayed(Duration(seconds: 1), () => 'Sandwich'); Future.wait([drink, food]).then((results) { print(results); print('Breakfast is ready'); }); }
[Coffee, Sandwich]
Breakfast is ready