onValue property

Stream<Event> onValue

Fires when the data at this location is updated. previousChildKey is null.

Implementation

Stream<Event> get onValue => _queryPlatform.onValue
    .handleError((error) => DatabaseError._(error))
    .map((item) => Event._(item));