refreshSnapshots method
Future<void>
refreshSnapshots(
- AsyncSnapshotListenerCallback<
RESULT_TYPE, AsyncSnapshot< listener, [RESULT_TYPE> > - VoidCallback? onFinally
Asynchronously executes a computation with listener callbacks in parameters for the asynchronous computation that may fail into something that is safe to read.
This is useful to avoid having to do a tedious try/catch/then
.
This is same as snapshots except that on subsequent calls, it reruns the asynchronous computation. To get the completed result from last execution, use snapshots.
Implementation
Future<void> refreshSnapshots(
AsyncSnapshotListenerCallback<RESULT_TYPE, AsyncSnapshot<RESULT_TYPE>>
listener, [
VoidCallback? onFinally,
]) {
buildAsyncValue();
return snapshots(listener, onFinally);
}