title: How to filter a list of obseravble in stream flutter
body: <p>I need to filter my list using the stream. I already have a stream that pulls all the clients, now I want to filter them out.</p>
  
  <p>I have this code that is working normal, it pulls clients and displays me in listview. I just want to filter this data I get from the main stream. Can anyone with knowledge help me?</p>
  
  <pre><code>class ClientesControles extends BlocBase {
  
  
        final ClienteService clienteService;
        ClientesControles(this.clienteService);
  
        BuildContext _context;
        init(BuildContext context) {
          _context = context;
        }
  
  
        Observable&lt;List&lt;ClienteModel&gt;&gt; get clientesStream =&gt; clienteService.clientes;
  
        final _stringFiltroController = BehaviorSubject&lt;String&gt;();
        Observable&lt;String&gt; get stringFiltroFluxo =&gt; _stringFiltroController.stream;
        Sink&lt;String&gt; get stringFiltroEvent =&gt; _stringFiltroController.sink;
  
      @mustCallSuper
        void dispose() {
          _cadnomecliente.close();
          _cadnomefcliente.close();
          _cadtelcliente.close();
          _cademailcliente.close();
          _cadidcliente.close();
          _stringFiltroController.close();
        }
      }
  
      Class ClienteService{
  
       Observable&lt;List&lt;ClienteModel&gt;&gt; get clientes =&gt;
            Observable(collection.snapshots().map((item) =&gt; item.documents
                .map&lt;ClienteModel&gt;((item) =&gt; ClienteModel.fromJson(item.data))
                .toList()));
  
      }
  </code></pre>