piper_state 0.0.2
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 notificationAsyncStateHolder<T>— async state with loading/error/data handlingViewModel— lifecycle-aware base class with automatic cleanupTask— cancellable async operations- Stream bindings:
bind(),stateFrom(),bindAsync() load()andlaunchWith()helpers for async operationsTestScopefor testing ViewModels without Flutter