piper_state 0.0.2 copy "piper_state: ^0.0.2" to clipboard
piper_state: ^0.0.2 copied to clipboard

Lifecycle-aware state management for Dart. ViewModels, async state, stream bindings, and task cancellation.

Changelog #

0.0.2 #

  • Version bump for flutter_piper compatibility

0.0.1 #

  • Initial release
  • StateHolder<T> — synchronous state with change notification
  • AsyncStateHolder<T> — async state with loading/error/data handling
  • ViewModel — lifecycle-aware base class with automatic cleanup
  • Task — cancellable async operations
  • Stream bindings: bind(), stateFrom(), bindAsync()
  • load() and launchWith() helpers for async operations
  • TestScope for testing ViewModels without Flutter
0
likes
150
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Lifecycle-aware state management for Dart. ViewModels, async state, stream bindings, and task cancellation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on piper_state