KeyEvent class
An event produced by streams of FirebaseStore to watch changes on the store keys.
- Annotations
-
- @freezed
Constructors
- KeyEvent.delete(String key)
-
Indicates that the value of
key
has been deleted on the server.constfactory - KeyEvent.invalidPath(String path)
-
Indicates that data was modified at an unsupported
path
.constfactory -
KeyEvent.reset(List<
String> keys) -
Indicates a full store state, with all
keys
as currently stored on the server.constfactory - KeyEvent.update(String key)
-
Indicates that the value of
key
has been updated or patched on the server.constfactory
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(_KeyReset value), required TResult update(_KeyUpdate value), required TResult delete(_KeyDelete value), required TResult invalidPath(_KeyInvalidPath value)}) → TResult -
inherited
-
maybeMap<
TResult extends Object?> ({TResult reset(_KeyReset value)?, TResult update(_KeyUpdate value)?, TResult delete(_KeyDelete value)?, TResult invalidPath(_KeyInvalidPath value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult reset(List< String> keys)?, TResult update(String key)?, TResult delete(String key)?, 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(List< String> keys), required TResult update(String key), required TResult delete(String key), required TResult invalidPath(String path)}) → TResult -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited