onInit method

void onInit(
  1. String blocName,
  2. T? initState
)

Called when the bloc is being initialized

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

Implementation

void onInit(String blocName, T? initState) {}