ReduxAction<TState extends ReduxState> class abstract

Redux PatternにおけるActionを定義する. Storeはexecute()が返却したStreamから逐次値を取得し、Storeへ反映させる. Stream

設計上の制約: Actionそのものは非同期に行われるが、 1つのAction.execute() が終了するまで、 ほかのActionは保留される.

Implementers

Constructors

ReduxAction()

Properties

done bool
実行完了していればtrue.
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
store ReduxStore<TState>
実行対象のStoreを取得する.
no setter

Methods

execute(TState state) Stream<TState>
interrupt(ReduxAction<TState> action, TState state) Stream<TState>
Action内で別なActionを割り込み実行する. 他のActionを使い回すなどの利用方法がある. ただし、引数 action は使用済みとなるため、再利用はできない.
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