async_value 0.0.1 copy "async_value: ^0.0.1" to clipboard
async_value: ^0.0.1 copied to clipboard

An utility for safely manipulating asynchronous data

  • An utility for safely manipulating asynchronous data

just clone from Riverpod

By using [AsyncValue], you are guaranteed that you cannot forget to handle the loading/error state of an asynchronous operation.

It also expose some utilities to nicely convert an [AsyncValue] to a different object. For example, a Flutter Widget may use [when] to convert an [AsyncValue] into either a progress indicator, an error screen, or to show the data:

2
likes
100
pub points
0%
popularity

Publisher

unverified uploader

An utility for safely manipulating asynchronous data

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

freezed_annotation

More

Packages that depend on async_value