CacheableStateProvider<T> mixin
A provider that can provide a cacheable state of a BaseCRDTDocument
T is the type of the cached state of the handler.
The handler state can be whatever the handler needs it to be
to perform better. There is no binding with the handler.value
or getSnapshotState.
- Superclass constraints
- Mixin applications
Properties
- cachedState → T?
-
Returns the cached state
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier for
thisconsumerno setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useIncrementalCacheUpdate ↔ bool
-
Whether to use incremental cache update
getter/setter pair
Methods
-
incrementCachedState(
{required Operation operation, required T state}) → T? - When the document receives an operation and a change is applied anyone using CacheableStateProvider is allowed to increment the cached state.
-
invalidateCache(
) → void - Invalidates the cached state
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCachedState(
T newState) → void - Updates the cached state
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited