MultiSourceBufferPlugin<TState extends ReduxState> class

MultiSourceReduxPropertyBufferMixin および MultiSourceReduxPropertyBufferMixin を 簡潔に扱えるようにラップするPlugin.

Inheritance
Mixed in types

Constructors

MultiSourceBufferPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
バッファを持っていればtrue.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store ReduxStore<TState>?
getter/setter pair

Methods

addStreamSource<T>(Stream<T> source, TState merge(TState state, T value), {bool forceMerge = false}) StreamSubscription<T>
Streamからデータを受け取り、Storeへとマージする. StreamはReduxStoreのライフサイクル終了時に自動的に解放される.
dispose() Future
override
merge(TState state) Stream<TState>
登録順を守り、キューが空になるまで順にマージするStreamを生成する. Stateの切り替わりをトレースする必要があるため、Stateのスキップ/フィルタリングは行わない.
inherited
mergeWithExecute(TState state, {required Stream<TState> execute(TState state)}) Stream<TState>
Stateの事前マージと事後マージを行う.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispatch(ReduxStore<TState> store, ReduxAction<TState> action, TState state) → void
StoreへDispatch命令が発行された.
inherited
onRegistered(ReduxStore<TState> store) → void
StoreへPluginが登録された.
override
onStateChanged(ReduxStore<TState> store, ReduxAction<TState> action, TState oldState, TState newState) → void
Stateが実際に反映されたタイミングで呼び出される.
inherited
onUnregistered(ReduxStore<TState> store) → void
Storeから登録解除された dispose()の直前にも呼び出される.
inherited
pop(TState state) → TState
Bufferにオブジェクトが存在すればマージして新たなStateを返却し、 そうでないなら state をそのまま返却する.
inherited
push<TProperty>(TProperty newProperty, {required TState merge(TState state, TProperty value)}) → void
未ハンドリングの新しいStateを追加する.
inherited
pushWithMerge<T>(T newProperty, {required TState merge(TState state, T value), bool forceMerge = false}) → void
Bufferへ値を追加し、必要であればStoreのDispatchイベントを発行する.
toString() String
A string representation of this object.
inherited

Operators

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