Add some sanity to the ImageStream listener API (#32936)

The current API was broken in that you registered multiple
callbacks at once, but when you removed listeners, only the
primary listener was used to determine what was removed.
This led to unintuitive cases where the caller could get
unexpected behavior.

This updates the API to add and remove listeners using
a newly introduced [ImageStreamListener] object, a value
object that has references to the individual callbacks
that may fire.

flutter/flutter#24722
flutter/flutter#32374
flutter/flutter#32935
https://dart.googlesource.com/external/github.com/flutter/flutter/+/592f81e7c4eb31327b3cbf1e73d547587d6f7dea
1 file changed
tree: 4c5bec798647383b406a7e411d2fabeba8dd47cf
  1. commits.json