discontinuedPackage firebase has been discontinued and replaced by firebase_core.

onSnapshot property

Stream<DocumentSnapshot> get onSnapshot

Attaches a listener for DocumentSnapshot events.

Implementation

Stream<DocumentSnapshot> get onSnapshot => _onSnapshotController.stream;