DataSnapshot class Null safety

A DataSnapshot contains data from a Firebase Database location. Any time you read Firebase data, you receive the data as a DataSnapshot.

Properties

exists bool
Ascertains whether the value exists at the Firebase Database location.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key String?
The key of the location that generated this DataSnapshot.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value → dynamic
Returns the contents of this data snapshot as native types.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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