onInit method

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

Called when the bloc is being initialized

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

Implementation

@override
void onInit(R bloc, initState) {
  _log.info('Init by ${bloc.runtimeType}:\n'
      '    initialState: $initState');
}