action0<R> function
R Function()
action0<R>(
- R fn()
Wraps a 0-argument callback function in a type-safe action.
Executes fn inside a transaction-safe batch and untracked block.
Example Usage
final increment = action0(() {
count.value++;
clicks.value++;
});
Implementation
R Function() action0<R>(R Function() fn) => () => batch(() => untracked(fn));