StoreProxy<S> class
A StoreProxy is an implementation of interface Store as a proxy.
The type parameter S
is the type of the state of the Store.
- Inheritance
-
- Object
- EventProcessor<
S> - Store<
S> - StoreProxy
Constructors
-
StoreProxy(ValueGetter<
S> state, EventAcceptor<S> processor, Object identity, [EventListener<S> ? listener]) -
const
Properties
- hashCode → int
-
This class delegates hashCode to the identity object.
no setteroverride
- identity → Object
-
Controls the value semantics of this class.
final
-
listener
→ EventListener<
S> ? -
Is called each time after an event is processed and the new state is stored.
final
-
processor
→ EventAcceptor<
S> -
Updates the state of the state management instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapshot
→ StoreSnapshot<
S> -
Returns the current store data.
no setteroverride
- state → S
-
Reads the current state of the state management instance.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
Event< S> event) → void -
Updates the state of the state management instance.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
This class delegates operator== to the identity object.
override