useStreamHandler<T extends Object, R> function
void
useStreamHandler<T extends Object, R>(
- Stream<
R> select(- T
- void handler(
- BuildContext context,
- AsyncSnapshot<
R> newValue, - void cancel()
- required R initialValue,
- String? instanceName,
- bool preserveState = true,
Implementation
void useStreamHandler<T extends Object, R>(
Stream<R> Function(T) select,
void Function(BuildContext context, AsyncSnapshot<R> newValue,
void Function() cancel)
handler,
{required R initialValue,
String? instanceName,
bool preserveState = true}) {
return use(_WatchStreamHook<T, R>(
initialValue: initialValue,
select: select,
handler: handler,
instanceName: instanceName,
preserveState: preserveState,
));
}