Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
向 RxDart 添加侦听器时,PublishSubject我得到一个StreamSubscription. 然后我可以使用StreamSubscription来暂停和恢复,有没有办法用 来做到这一点StreamBuilder?
PublishSubject
StreamSubscription
StreamBuilder
不。
您不能暂停收听Streamusing StreamBuilder。如果你愿意,你将不得不手动订阅你的Stream并打电话给pause自己。
Stream
pause