ValueEvent<T> class

An event produced by streams of FirebaseStore to watch changes on the specific store entry.

Annotations
  • @freezed

Constructors

ValueEvent.delete()
Indicates that the value has been deleted on the server.
const
factory
ValueEvent.invalidPath(String path)
Indicates that data was modified at an unsupported path.
const
factory
ValueEvent.patch(PatchSet<T> patchSet)
Indicates that the value has been patched on the server with patchSet.
const
factory
ValueEvent.update(T data)
Indicates that the entry has been updated on the server to data.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult update(_ValueUpdate<T> value), required TResult patch(_ValuePatch<T> value), required TResult delete(_ValueDelete<T> value), required TResult invalidPath(_ValueInvalidPath<T> value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult update(_ValueUpdate<T> value)?, TResult patch(_ValuePatch<T> value)?, TResult delete(_ValueDelete<T> value)?, TResult invalidPath(_ValueInvalidPath<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult update(T data)?, TResult patch(PatchSet<T> patchSet)?, TResult delete()?, TResult invalidPath(String path)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult update(T data), required TResult patch(PatchSet<T> patchSet), required TResult delete(), required TResult invalidPath(String path)}) → TResult
inherited

Operators

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