EventBus class

Constructors

EventBus()
factory

Properties

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

Methods

add(String eventName, EventCallback eventCallback) → void
添加订阅者
emit(String eventName, [dynamic data]) → void
触发事件,事件触发后该事件所有订阅者会被调用
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String eventName, [EventCallback? eventCallback]) → void
移除订阅者
toString() String
A string representation of this object.
inherited

Operators

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