onStateChanged property
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;