There are two types of streams in Flutter: single subscription streams and broadcast streams. Single subscription streams are the default.
Read moreWhat is the use of StreamBuilder?
If you need to build a widget based on the result of a Stream , you can use the StreamBuilder widget. You can create a Stream and pass it as the stream argument. Then, you have to pass an AsyncWidgetBuilder function which is used to build a widget based on the snapshots of the Stream .
Read more