title: Flutter listen Bloc state from Other Bloc
body: <p>Hello I'm trying to listen state of bloc form other bloc.
  I'm using this package <a href="https://pub.dev/packages/bloc" rel="noreferrer">https://pub.dev/packages/bloc</a></p>
  
  <p>From my <strong>UserBloc</strong> I want listen <strong>AuthBloc</strong> and when It has the state <strong>AuthenticationAuthenticated</strong> the <strong>UserBloc</strong> should fire an event.</p>
  
  <pre><code>final UserRepository userRepository;
  final authBloc;
  StreamSubscription authSub;
  UserBloc({ @required this.userRepository, @required this.authBloc}) {
      authSub = authBloc.listen((stateAuth) {
  
        //here is my problem because stateAuth, even is AuthenticationAuthenticated it return always false.
        if (stateAuth is AuthenticationAuthenticated) {
          this.add(GetUser())  ;
        }
      });
    }
  
  @override
    Future&lt;void&gt; close() async {
      authSub?.cancel();
      super.close();
    }
  </code></pre>
  
  <p>For now I have this problem:
  When in debug I'm trying to print stateAuth it return:</p>
  
  <pre><code>stateAuth = {AuthenticationAuthenticated} AuthenticationAuthenticated
     props = {_ImmutableList} size = 0
  </code></pre>
  
  <p>But <strong>stateAuth is AuthenticationAuthenticated</strong> return always false.</p>
  
  <p>Is there any way for listen blocState From Other Bloc class?</p>