useFuture
Listens to a Future and exposes its current state as an AsyncSnapshot. It is the hook equivalent of the FutureBuilder widget.
useStream
Subscribes to a Stream and exposes its latest value as an AsyncSnapshot. It is the hook equivalent of the StreamBuilder widget.
useMemoizedFuture
Combines useMemoized and useFuture: it memoizes the Future returned by a factory and listens to it, recreating the Future only when keys change.
useMemoizedStream
Combines useMemoized and useStream: it memoizes the Stream returned by a factory and subscribes to it, re-subscribing only when keys change.
useStreamController
Creates a broadcast StreamController that lives across rebuilds and is closed automatically when the hook is disposed.
useStreamSubscription
Subscribes to a Stream and runs a callback for every event. Unlike useStream, which keeps only the latest value, this handles each event - so it suits event streams where nothing may be dropped.
useDebounced
Returns a debounced copy of a value: it follows value, but only after value has stopped changing for duration. Every change restarts the timer.
usePeriodicalSignal
Returns an int that increments every period, triggering a rebuild on each tick. Use it as a periodic trigger without hand-rolling a Timer.
useAsyncSnapshotErrorHandler
Watches an AsyncSnapshot and reports its error once, when it appears. It is the piece that stops an error returned by useFuture or useStream from sitting silently in snapshot.error.