riverpod-mutations
Installation
SKILL.md
Riverpod — Mutations (experimental)
Instructions
Mutations represent a single async operation the UI can react to (e.g. "add todo" in progress, succeeded, or failed). They keep loading/error/success out of your main provider state. The API is experimental and may change.
Defining a mutation
Create a Mutation<T> instance (T is the result type, optional):
final addTodo = Mutation<Todo>();
Typically store it as a global or static final on a Notifier.
Listening
Use ref.watch in a Consumer (or inside a provider) to drive the UI: