StoreValueEventTransformer<T> class
A stream transformer that converts a stream of StreamEvents into a stream of ValueEvents, deserializing the received data and turing database status updates into data updates.
Note: Typically, you would use FirebaseStore.streamEntry instead of using this class directly.
- Implemented types
Constructors
-
StoreValueEventTransformer({required DataFromJsonCallback<
T> dataFromJson, required PatchSetFactory<T> patchSetFactory}) -
Default constructor
const
Properties
-
dataFromJson
→ DataFromJsonCallback<
T> -
A callback that can convert the received JSON data to
T
final - hashCode → int
-
The hash code for this object.
no setterinherited
-
patchSetFactory
→ PatchSetFactory<
T> -
A callback that can generate PatchSet instances for patch events
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
Stream< StreamEvent> stream) → Stream<ValueEvent< T> > -
Transforms the provided
stream
.override -
cast<
RS, RT> () → StreamTransformer< RS, RT> -
Provides a
StreamTransformer<RS, RT>
view of this stream transformer.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited