atmos
library
Minimal Jotai-inspired state management for Flutter with atoms.
Classes
-
AtmosStore
-
The central reactive store that holds values, manages dependencies,
and notifies listeners.
-
Atom<T>
-
A reactive state primitive representing a single unit of state.
-
AtomBuilder<T>
-
A widget that rebuilds whenever the given atom changes.
Functions
-
atom<T>(T value)
→ Atom<T>
-
This is a shorthand helper constructor for:
-
computed<T>(T compute(Getter get))
→ Atom<T>
-
Creates a computed atom whose value is derived from other atoms using
the
compute function.
Typedefs
-
Getter
= T Function<T>(Atom<T> atom)
-
Signature used inside computed atoms to read the value of another Atom.
-
Listener
= void Function()
-
A function invoked when an atom's value changes.