api_state 2.0.0
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 sealedApiStatus<T>states. Add anApiLoadMorecase to exhaustive switches. - Added
isLoadMore,toLoadMore(), and load-more handling to mapping and callback helpers. ApiFailure<T>can optionally retain prior data. UsehasData: truewhen the retained value isnull.- Added
toLoadMoreFailure(error)to preserve loaded data when a next-page request fails.
1.0.0 #
- Initial version.