The Google I/O 2018 video about Flutter explains how to use Dart streams to manage state in a Flutter application. The speaker talked about using Sink
as input stre
A StreamSink
is a StreamConsumer
, which means it can take several streams (added by addStream) and processes the events these streams emit.
If it is the StreamSink
of a StreamController
then all events from the added streams are emitted by the stream created by the StreamController
.
This way you can pipe (forward) one or more streams into another one.