watch method

Stream<List<R>> watch({
  1. bool initialReturn = false,
})

Create a watcher that yiels the results of this query whenever its results have (potentially) changed.

If you don't always use the results, consider using watchLazy and rerun the query manually. If initialReturn is true, the results will be sent to the consumer immediately.

Implementation

Stream<List<R>> watch({bool initialReturn = false}) =>
    build().watch(initialReturn: initialReturn);