Allow sending platform messages from plugins to the framework and implement EventChannel (#40638)

* Allow sending messages from the platform to the framework

* Add ability to send messages from the plugin to the platform.

Also adds [PluginEventChannel] which is the plugin counterpart to
EventChannel.

Fixes https://github.com/flutter/flutter/issues/39981

* fix analyzer errors

* Enhance doc comments

* Remove dead code in test
This commit is contained in:
Harry Terkelsen
2019-09-19 10:48:57 -07:00
committed by GitHub
parent c94a994d62
commit 6911a1513c
5 changed files with 241 additions and 12 deletions

View File

@@ -2,4 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export 'src/plugin_event_channel.dart';
export 'src/plugin_registry.dart';