Skip to content

Instantly share code, notes, and snippets.

@nickmeinhold
Created August 25, 2019 13:05
Show Gist options
  • Save nickmeinhold/c60f03f23a1d5be144940212b6526500 to your computer and use it in GitHub Desktop.
Save nickmeinhold/c60f03f23a1d5be144940212b6526500 to your computer and use it in GitHub Desktop.
A stream made from an iterable will emit the done event
void main() {
Stream.fromIterable([1,2]).listen(print, onDone: () => print('onDone'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment