Skip to main content

api_state 2.0.0 copy "api_state: ^2.0.0" to clipboard
api_state: ^2.0.0 copied to clipboard

A lightweight API state wrapper for Dart/Flutter state management.

2.0.0 #

  • Breaking: Added ApiLoadMore<T> to the sealed ApiStatus<T> states. Add an ApiLoadMore case to exhaustive switches.
  • Added isLoadMore, toLoadMore(), and load-more handling to mapping and callback helpers.
  • ApiFailure<T> can optionally retain prior data. Use hasData: true when the retained value is null.
  • Added toLoadMoreFailure(error) to preserve loaded data when a next-page request fails.

1.0.0 #

  • Initial version.
1
likes
160
points
123
downloads

Documentation

API reference

Publisher

verified publisherramandeep.dev

Weekly Downloads

A lightweight API state wrapper for Dart/Flutter state management.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on api_state