useWatchStream<T extends Object, R> function

AsyncSnapshot<R> useWatchStream<T extends Object, R>(
  1. Stream<R> select(
    1. T
    ),
  2. R initialValue, {
  3. String? instanceName,
  4. bool preserveState = true,
})

Implementation

AsyncSnapshot<R> useWatchStream<T extends Object, R>(
    Stream<R> Function(T) select, R initialValue,
    {String? instanceName, bool preserveState = true}) {
  return use(_WatchStreamHook<T, R>(
      select: select,
      instanceName: instanceName,
      initialValue: initialValue,
      preserveState: preserveState));
}