atomly 0.1.1
atomly: ^0.1.1 copied to clipboard
Atomic state management for Dart and Flutter. One Atom<T> primitive handles sync, async, computed, families, and effects with no boilerplate or codegen.
Changelog #
0.1.1 #
- Add a runnable headless example under
example/. - Shorten the package description to fit pub.flutter-io.cn's 60–180 character window for search-result snippets.
0.1.0 #
Initial release.
Atom<T>core primitive with five constructors:Atom(value),Atom.computed,Atom.future,Atom.stream,Atom.family.AtomValue<T>sealed class for async state (AtomData/AtomLoading/AtomError) with stale-while-revalidatepreviousDatacarry-through.AtomStoreruntime with dependency tracking, automatic invalidation, auto-dispose, and override mechanism.AtomLifecycleAPI for advanced atoms (onDispose, dependency tracking vialc.get).- Observer hook (
Atomly.observe) for logging every read / write / dispose for DevTools or external integrations. - Pure Dart, no code generation, no Flutter dependency.