action5#
Kind:
function |
Package: package:preact_signals
Function: action5#
R Function(A, B, C, D, E) action5(R Function(A, B, C, D, E) fn)
Wraps a 5-argument callback function in a type-safe action.
Executes fn inside a transaction-safe batch and untracked block.
Example Usage#
final setConfig = action5((int w, int h, String title, bool dark, double opacity) {
width.value = w;
height.value = h;
appTitle.value = title;
themeDark.value = dark;
bgOpacity.value = opacity;
});
References#
The action5 type is referenced and used in the following pages: