e227ed2621
It's awkward that PluginCommunicationChannel.listen accepts a `Function?` for the `onError` parameter, but it _must_ be a `void Function(Object)` or a `void Function(Object, StackTrace)`. I wish we had static analysis for this... Change-Id: Id91a8172c7ef20e35bb8ff21736649d1501aff42 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395082 Commit-Queue: Samuel Rawlins <srawlins@google.com> Auto-Submit: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>