QueryEvent class
Event fired when data changes at location.
Example:
Database database = firebase.database();
database.ref('messages').onValue.listen((QueryEvent e) {
DataSnapshot datasnapshot = e.snapshot;
//...
});
Constructors
- QueryEvent(DataSnapshot snapshot, [String? prevChildKey])
- Creates a new QueryEvent with snapshot and optional prevChildKey.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- prevChildKey → String?
-
String containing the key of the previous child.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → DataSnapshot
-
Immutable copy of the data at a database location.
final
Methods
-
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