onInit method

void onInit(
  1. R bloc,
  2. S? initState
)

Called when the bloc is being initialized

Will be called even if initial state is null (isBusy = true)

Implementation

void onInit(R bloc, S? initState) {}