EventBus class
事件总线
Constructors
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< events, required BaseViewState<T> >StatefulWidget, ViewModel> baseView, ValueChanged<T> ? listener}) → void -
监听事件
baseView
生命周期组件events
要监听的事件listener
回调函数 -
sendEvent<
T> (Event< T> event) → void -
发送事件
event
事件