Skip to content

klaus-moon/riverpod_async_value_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',
);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages