onNewState method

void onNewState(
  1. S state
)

Listener called every time a new state is emitted to this component.

Default implementation is a no-op.

Implementation

void onNewState(S state) {}