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() { final prices = [10, 25, 40, 5]; final doubled = prices.map((price) => price * 2).toList(); print(doubled); final cheap = prices.where((price) => price < 20).toList(); print(cheap); }
[20, 50, 80, 10]
[10, 5]