watchById method

  1. @override
Stream<T?>? watchById(
  1. String id, {
  2. String? userId,
})
override

Watch a single item by its ID, emitting the item on change or null if deleted. Return null if the adapter doesn't support reactive queries.

Implementation

@override
Stream<T?>? watchById(String id, {String? userId}) => _watch(() => read(id, userId: userId), userId: userId);