piper_state 0.0.3
piper_state: ^0.0.3 copied to clipboard
Simple Flutter state management with lifecycle-aware ViewModels. Automatic cleanup, explicit dependencies, no boilerplate.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.1 - 2025-12-08 #
Added #
StateHolder<T>— synchronous state with change notificationAsyncStateHolder<T>— async state with loading/error/data handlingAsyncState<T>— sealed class for representing async operation statesViewModel— lifecycle-aware base class with automatic cleanupTask— cancellable async operationsTaskScope— manages multiple tasks with collective cancellation- Stream bindings:
bind(),stateFrom(),bindAsync() load()andlaunchWith()helpers for async operationsTestScopefor testing ViewModels without Flutter