-
Hi, Being quite a newbie with Flutter and and even development in general, I'll ask for your patience :) Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@R-Emagina There are two kinds of streams in Dart: single-subscription streams (default) and broadcast streams. The former kind allows only one subscription to be made; not one at a time, but just one, and when it's closed the stream cannot be used anymore. The latter allows multiple subscriptions to be made. But the real issue (likely) is that you're not "caching" you subscription. If you save it for future use, you don't need another. |
Beta Was this translation helpful? Give feedback.
@R-Emagina There are two kinds of streams in Dart: single-subscription streams (default) and broadcast streams. The former kind allows only one subscription to be made; not one at a time, but just one, and when it's closed the stream cannot be used anymore. The latter allows multiple subscriptions to be made.
But the real issue (likely) is that you're not "caching" you subscription. If you save it for future use, you don't need another.