DispatchActionMixin<T> mixin
事件分发 Mixin
- Superclass constraints
Properties
-
eventActionStream
→ Stream<
EventAction< T> > -
事件流
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispatch(
T event, {dynamic data}) → void - 发送事件
-
dispatcher(
T event, {dynamic data}) → VoidCallback - 创建事件分发回调
-
dispatcherWithData<
V> (T event) → ValueChanged< V> - 创建带数据的事件分发回调
-
dispatchLogger(
{String? tag, String formatter(EventAction< T> )?}) → StreamSubscription<EventAction< T> > -
事件日志记录器
tag
自定义日志标签level
日志级别formatter
自定义日志格式化方法 -
dispose(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEvent(
T event, DispatchActionListener< T> onListen) → StreamSubscription<EventAction< T> > - 监听指定事件
-
onEventBy(
bool predicate(T event), DispatchActionListener< T> onListen) → StreamSubscription<EventAction< T> > - 监听符合条件的事件
-
onEventData<
R> (T event, ValueChanged< R> onListen) → StreamSubscription<R> - 监听指定事件的数据
-
onEventDataBy<
R> (bool predicate(T event), ValueChanged< R> onListen) → StreamSubscription<R> - 监听符合条件的事件数据
-
streamEventDataWhere<
R> (T event) → Stream< R> - 获取指定事件的数据流
-
streamEventDataWhereBy<
R> (bool predicate(T event)) → Stream< R> - 根据条件过滤事件并获取数据
-
streamEventWhere(
T event) → Stream< EventAction< T> > - 获取指定事件的事件流
-
streamEventWhereBy(
bool predicate(T event)) → Stream< EventAction< T> > - 根据条件过滤事件
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited