UpdateReduxState<TState extends ReduxState, TProperty, TModifiedProperty> class

Modifierにより、簡易的なActionを実現する.

何かしら簡易的な逐次実行処理を行いたい場合に使用する.

Inheritance

Constructors

UpdateReduxState({required TProperty selector(TState state), required Stream<TModifiedProperty> modifier(TState state, TProperty property), required TState merger(TState state, TModifiedProperty property), String? name})

Properties

done bool
実行完了していればtrue.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
merger → TState Function(TState state, TModifiedProperty property)
modifier が吐き出したTModifiedPropertyをStateに統合する関数
final
modifier Stream<TModifiedProperty> Function(TState state, TProperty property)
更新処理を行う関数
final
name String?
表示名オプション
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector → TProperty Function(TState state)
Stateからプロパティを選択する関数
final
store ReduxStore<TState>
実行対象のStoreを取得する.
no setterinherited

Methods

execute(TState state) Stream<TState>
override
interrupt(ReduxAction<TState> action, TState state) Stream<TState>
Action内で別なActionを割り込み実行する. 他のActionを使い回すなどの利用方法がある. ただし、引数 action は使用済みとなるため、再利用はできない.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

all<TState extends ReduxState>(Stream<TState> modifier(TState state), {String? name}) UpdateReduxState<TState, TState, TState>
Propertyを選択せず、Stateをすべて書き換える.