StoreEvent<T> class

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

Annotations
  • @freezed

Constructors

StoreEvent.delete(String key)
Indicates the entry under key has been deleted.
const
factory
StoreEvent.invalidPath(String path)
Indicates that data was modified at an unsupported path.
const
factory
StoreEvent.patch(String key, PatchSet<T> patchSet)
Indicates the entry under key has been patched with patchSet.
const
factory
StoreEvent.put(String key, T value)
Indicates the entry under key has been updated to a new value.
const
factory
StoreEvent.reset(Map<String, T> data)
Indicates a full store state, with all data as currently stored on the server.
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 reset(_StoreReset<T> value), required TResult put(_StorePut<T> value), required TResult delete(_StoreDelete<T> value), required TResult patch(_StorePatch<T> value), required TResult invalidPath(_StoreInvalidPath<T> value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult reset(_StoreReset<T> value)?, TResult put(_StorePut<T> value)?, TResult delete(_StoreDelete<T> value)?, TResult patch(_StorePatch<T> value)?, TResult invalidPath(_StoreInvalidPath<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult reset(Map<String, T> data)?, TResult put(String key, T value)?, TResult delete(String key)?, TResult patch(String key, PatchSet<T> patchSet)?, 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 reset(Map<String, T> data), required TResult put(String key, T value), required TResult delete(String key), required TResult patch(String key, PatchSet<T> patchSet), required TResult invalidPath(String path)}) → TResult
inherited

Operators

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