s0nerik / context_plus

Convenient BuildContext-based value propagation and observing. Seamlessly integrates with Flutter's built-in observability primitives.
MIT License
32 stars 4 forks source link

stream.watch should return an AsyncSnapshot? #1

Closed xvrh closed 11 months ago

xvrh commented 11 months ago

Hello, I had a quick look at this library, and I'm surprise the watch method on a stream returns void. Shouldn't it returns AsyncSnapshot (https://api.flutter.dev/flutter/widgets/AsyncSnapshot-class.html) like the argument in the StreamBuilder?

s0nerik commented 11 months ago

Hey, Xavier. This sounds like a good idea to me. Will look into adding this soon. Thanks for pointing this out.

s0nerik commented 11 months ago

Implemented in v2.0.0