title: Calling async event in flutter_bloc
body: <p>I am trying to fetch data from API as soon as the flutter app loads but I am unable to achieve so</p>
  <pre><code>class MarketBloc extends Bloc&lt;MarketListEvent, MarketListState&gt; {
    MarketBloc() : super(MarketLoading()) {
      on&lt;MarketSelectEvent&gt;((event, emit) async {
        emit(MarketLoading());
        final data = await ApiCall().getData(event.value!);
        globalData = data;
        emit(MarketDataFetched(marDat: globalData.data, dealType: event.value));
      });
  
      
    }
  }
  </code></pre>
  <p>I have called MarketLoading state as the initial state and I want to call MarketSelectEvent just after that but in the current code, action is required to do so and i want to achieve it without any action.</p>