Is it possible for multiple different widgets to subscribe to the same stream? #790
justinmoon
started this conversation in
General
Replies: 1 comment
-
Sure. Just write down a few lines in Dart to wrap the native stream. Btw Stream.broadcast may be helpful |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My app has an event loop the receives incoming notifications from a server.
I think I understand how to modify the logging example to have one widget subscribe to events.
Would it be possible to allow multiple different widgets to subscribe to these events separately? Or would I need one thing to make the subscription and distribute events on the dart side?
Beta Was this translation helpful? Give feedback.
All reactions