Right way to handle navigation using BLoC : <p>Hello guys I'm using BLoC for app I'm currently developing but there some cases which I'm clueless like when you do login you fire API call and wait for result naturally I would send loading state and show loader but after 
that finishes how to handle for example navigating to different screen.
I've currently have something like this</p>

<pre><code>typedef void LoginSuccessCallback();
    class LoginBloc(){
    LoginBloc(Api this.api,LoginSuccessCallback loginSuccesCallback){
      _login.switchMap((ev) =&gt; api.login(ev.payload.email,ev.payload.password)).listen((_) =&gt; loginSuccessCallback);
     }
    }
</code></pre>

<p>But I'm sure there is much cleaner way for handling this I've tried to search some samples which have something similar but couldn't find anything.</p>
