ReduxPropertyNotifier<TState extends ReduxState, T> class
ReduxStateの特定プロパティが変更された際のハンドリングを行う.
Constructors
- ReduxPropertyNotifier({required T? selector(TState state), bool equals(T? a, T? b)?, void onPropertyCreated(TState newState, T newProperty)?, void onPropertyChangedWithState(TState? oldState, T? oldProperty, TState newState, T? newProperty)?, void onPropertyChanged(T? oldProperty, T? newProperty)?, void onPropertyCleared(TState newState)?, Future onDispose(TState state, T? property)?})
Properties
- equals → bool Function(T? a, T? b)
-
同一性テスト.
標準では ReduxPropertyNotifier.propertyEquals 関数が使用される.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector → T? Function(TState state)
-
Stateを受け取り、Propertyを選択して返却する
final
Methods
-
dispose(
) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onStateChanged(
TState newState) → void - プロパティの更新ハンドリングを行う.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
propertyEquals<
T> (T? a, T? b) → bool - ReduxStateのequals標準実装. 可能な限り自動的に型をチェックし、その型にあった標準的なequalsでチェックを行う.