snapshot property

DataSnapshot snapshot
final

The data of the event.

For a value event it is the query's location. For a child event it is the child, with the child's own reference (snapshot.ref.path is /l/a for child a of /l) and the child's priority.

Implementation

final DataSnapshot snapshot;