Skip to content

Instantly share code, notes, and snippets.

@kwalrath
Created January 31, 2020 22:37
Show Gist options
  • Save kwalrath/f83971283712e09dbc35c30507fb6bbf to your computer and use it in GitHub Desktop.
Save kwalrath/f83971283712e09dbc35c30507fb6bbf to your computer and use it in GitHub Desktop.
NumberCreator().stream
.where((i) => i % 2 == 0)
.map((i) => 'String $i')
.listen(print);
/*
OUTPUT:
String 2
String 4
String 6
String 8
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment