onInitialState method

void onInitialState(
  1. S state
)

Called only once with the initial state provided.

Default implementation is a no-op.

Implementation

void onInitialState(S state) {}