An Atom represents a microstate for the application.
Anyone can read an Atom, but only an atomAction can modify it.
Being a Listenable, it can be observed traditionally using
addListener and removeListener.
However, using atomEffect allows you to observe multiple Atoms
at once.
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
Listen for Atom changes present in the builder method.
builder: All Atom used in this function will be automatically
signed and this function will be called every
time the value of an Atom changes.
A base abstract class for all Hooks.
Hooks are reusable logic that can be shared across different parts
of the application, encapsulating initialization and disposal logic.
A mixin to be used with StatefulWidget to enable the use of Hooks.
This mixin manages the lifecycle of Hooks, ensuring they are properly
initialized and disposed of.
Creates an asynchronous selector Atom that derives its state from
other Atoms. state: The initial state of the Atom. scope: A function that returns the derived state asynchronously. key: The identifier of the Atom. pipe: A function that allows you to manipulate the value of the
Atom.
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
An Atom can only be modified within an AtomAction.
This ensures that the state is changed in a safe and predictable manner,
allowing state observation.
There are several variations of AtomAction that accept arguments:
Listen for Atom changes present in the body. body: All Atoms used in this function will be automatically
subscribed and this function will be called every
time the value of an Atom changes. filter: Filter reactions and prevent unwanted effects. effect: The body function generates a value that can be
retrieved from the effect function.
Creates a selector Atom that derives its state from other Atoms. scope: A function that returns the derived state. key: The identifier of the Atom. pipe: A function that allows you to manipulate the value of
the Atom.