async_value 0.0.1
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:

1
likes
110
pub points
4%
popularity

Publisher

Unknown

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