data_state 0.2.4 copy "data_state: ^0.2.4" to clipboard
data_state: ^0.2.4 copied to clipboard

outdated

A practical alternative to the AsyncSnapshot API

[0.2.4] - 2020-04-16 #

  • Add onError
  • Move reload to notifier and supply it as param
  • More tests and improved docs

[0.2.3] - 2020-04-15 #

  • Change dependency to be compatible with flutter_test

[0.2.2] - 2020-04-15 #

  • Add tests
  • Improve documentation

[0.2.1] - 2020-04-03 #

  • Make stream emit a ValueStream<T> (not a ValueStream<DataState<T>>) so it plays better with AsyncSnapshot (useful for incremental upgrades)

[0.2.0] - 2020-03-23 #

  • Make model an optional argument
  • Improve docs

[0.1.1] - 2020-03-12 #

  • Make initial state optional

[0.1.0] - 2020-03-12 #

  • Add DataState immutable class carries data, loading and exception information
  • Add DataStateNotifier class, a StateNotifier for DataState objects that additionally supports a Stream API
  • Write README
1
likes
0
pub points
6%
popularity

Publisher

unverified uploader

A practical alternative to the AsyncSnapshot API

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

async, freezed_annotation, rxdart, state_notifier

More

Packages that depend on data_state