riverpod_async_value_sync

Last updated:

0 purchases

riverpod_async_value_sync Image
riverpod_async_value_sync Images
Add to Cart

Description:

riverpod async value sync

riverpod_async_value_sync #
This plugin provides a method to check if all AsyncValue variables from Riverpod are ready for consumption.
Getting Started #
final valueA = ref.watch(providerA);
final valueB = ref.watch(providerB);

return AsyncValueSync.all(
[valueA, valueB],
data: (values) => values,
error: (values) => values, // the error callback is called if any `AsyncValue` has an error
loading: () => 'loading',
);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.