MeteorEventBus class

Constructors

MeteorEventBus()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel BasicMessageChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance MeteorEventBus
no setter

Static Methods

addListener({required String eventName, String? listenerId, required MeteorEventBusListener listener}) → void
添加订阅者-开始事件 eventName 事件名称 listenerId 可选,监听者id,用于移除监听者 listener 监听者
commit({required String eventName, bool? withMultiEngine = true, dynamic data}) → void
已加订阅者-发送事件 eventName 事件名称 withMultiEngine 是否发送多引擎,默认true表示支持多引擎 data 传送的数据
commitToCurrentEngine({required String eventName, dynamic data}) → void
commitToMultiEngine({required String eventName, dynamic data}) Future
receiveEvent(dynamic event) → void
removeListener({required String eventName, String? listenerId, MeteorEventBusListener? listener}) → void
移除订阅者-结束事件 listenerId 可选,监听者id,用于移除监听者 listener 可选,监听者 备注: 如果listenerId和listener都为空,则移除eventName下的所有监听者