onSnapshot method Null safety

Stream<RecordSnapshot<K, V>?> onSnapshot(
  1. Database database
)

Find first record (null if none) and listen for changes.

Returns a single subscriber stream that must be cancelled.

Implementation

Stream<RecordSnapshot<K, V>?> onSnapshot(Database database);