Back to Flutter Boost

BoostChannel class

doc/api/boost_channel/BoostChannel-class.html

5.0.22.6 KB
Original Source

BoostChannel class

The BoostChannel is a tool to get FlutterBoostAppState to operate the Custom events

We can get this by calling "BoostChannel.instance"

Properties

hashCodeint The hash code for this object. [...] read-only, inherited runtimeTypeType A representation of the runtime type of the object. read-only, inherited

Methods

addEventListener(String key, EventListener listener) → VoidCallback Add event listener in flutter side, which is to listen the events from native side [...]noSuchMethod(Invocation invocation) → dynamic Invoked when a non-existent method or property is accessed. [...] inherited sendEventToNative(String key, Map args) → void Send a custom event to native with key and args Calls when flutter(here) wants to send event to native side toString() → String A string representation of this object. [...] inherited

Operators

operator ==(Object other) → bool The equality operator. [...] inherited

Static Properties

instanceBoostChannel read-only