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
Future
main() async { Stream
prices = Stream.fromIterable([5, 12, 3, 20, 8]); Stream
labels = prices .where((price) => price >= 8) .map((price) => 'Price: $price dollars'); await for (String label in labels) { print(label); } }
Price: 12 dollars
Price: 20 dollars
Price: 8 dollars