onStateChanged property

void Function(JState prev, JState next, JIntent<JState>? origin)? onStateChanged
getter/setter pair

Callback triggered when state changes from prev to next. Optionally includes the originating intent.

Implementation

static void Function(JState prev, JState next, JIntent? origin)?
onStateChanged;