Skip to content

BleScanner as Broadcast for tab navigation #436

Answered by werediver
R-Emagina asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@R-Emagina
Comment options

Answer selected by R-Emagina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants