EventBus class

事件总线

Constructors

EventBus.new()

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

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 Methods

getLatestData<T>(Event<T> event) → T?
listen<T>({required List<Event<T>> events, required BaseViewState<StatefulWidget, ViewModel> baseView, ValueChanged<T>? listener}) → void
监听事件 baseView 生命周期组件 events 要监听的事件 listener 回调函数
sendEvent<T>(Event<T> event) → void
发送事件 event事件