title: FlutterBloc react to Blocs's initial state
body: <p>How can I make my bloc react to the bloc's initial state. In the example im trying to log something on the blocs initial state but nothing happens. It only prints the blocs constructor but not the print statement from facilityIntial</p>
  <pre><code>
  class FacilityBloc extends Bloc&lt;FacilityEvent, FacilityState&gt; {
    FacilityBloc(this.facilityRepository)
        : assert(facilityRepository != null),
          super(FacilityInitial()) {
      print('FacilitBlocConstructed');
    }
  
    final FacilityRepository facilityRepository;
  
    @override
    Stream&lt;FacilityState&gt; mapEventToState(
      FacilityEvent event,
    ) async* {
      print(event);
      if (event is FacilityGetAll) {
        yield* _mapGetAllFacilityToState(event);
      } else if (event is FacilityInitial) {
        print('Facility intial state');
      }
    }
  
    Stream&lt;FacilityState&gt; _mapGetAllFacilityToState(FacilityGetAll event) async* {
      yield FacilityLoading();
      try {
        List&lt;Facility&gt; facilities = await facilityRepository.loadAllFacility();
        yield FacilityLoaded(facilities);
      } on AppException catch (e) {
        yield FacilityError(e.exceptionMessageId);
      } catch (e) {
        yield FacilityError(LocaleKeys.generalError);
      }
    }
  }
  
  </code></pre>