Refactor tracking of multiple stream subscriptions (dart-lang/stream_transform#92)
Instead of using a variable with a bigger scope than the `onListen`
handler, and assigning to null in between calls to the callback, scope
the variable down. Remove the subscriptions when they are no longer
needed and use the size of the list as the subscription count rather
than tracking in a separate int variable.
Refactor a `..addAll` and a `.map` to use a list literal with a for-loop
element.
Make more local variables final since the details of which are changed
is very relevant to behavior in this code.
2 files changed
tree: 8e15dc57380e4598c3867afef1763196408a936d
- pkgs/