title: Multiple search in one List in Flutter
body: <p><strong>Try to make search in List</strong></p>
  <p>I'm use this code, but only work the first <code>.where...</code>, then the other searches do not happen</p>
  <p>List example, I make a get to API, and this is just a very small piece of what comes to me, that's why the search... I need to find it on the list the &quot;ID&quot;, the &quot;serviceStatus&quot;, the &quot;name&quot; of &quot;unit&quot; and the &quot;name&quot; of &quot;project&quot;</p>
  <pre class="lang-js prettyprint-override"><code>[
    {
      &quot;id&quot;: 41,
      &quot;id_technician&quot;: &quot;vn97358g8he4g8p9ehg&quot;,
      &quot;id_unit&quot;: &quot;7fa216b004ed6800c5196ed7&quot;,
      &quot;id_project&quot;: &quot;3eefc947ae4975eb6375c7&quot;,
      &quot;requestDate&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;dateAttendance&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;serviceStatus&quot;: &quot;novo&quot;,
      &quot;customerPaymentStatus&quot;: &quot;novo&quot;,
      &quot;technicalPaymentStatus&quot;: &quot;novo&quot;,
      &quot;customerPaymentDate&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;technicalPaymentDate&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;checkInTime&quot;: &quot;08:00:00&quot;,
      &quot;exitTime&quot;: &quot;09:00:00&quot;,
      &quot;totalOvertime&quot;: &quot;00:00:00&quot;,
      &quot;totalPayable&quot;: &quot;0.00&quot;,
      &quot;totalReceivable&quot;: &quot;0.00&quot;,
      &quot;additionalCharge&quot;: &quot;0.00&quot;,
      &quot;id_userCreated&quot;: &quot;834fd457b31e329e5f59b693&quot;,
      &quot;id_userUpdated&quot;: &quot;834fd457b31e329e5f59b693&quot;,
      &quot;id_advance&quot;: null,
      &quot;created_at&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;update_at&quot;: &quot;2021-04-16T17:12:24.000Z&quot;,
      &quot;technician&quot;: {
        &quot;id&quot;: &quot;806a2c33f40619da3b6b401&quot;,
        &quot;id_user&quot;: &quot;f17ecf1834fd457b31e329e5f59b693&quot;,
        &quot;name&quot;: &quot;Tecnico Yugi&quot;,
        &quot;cpf&quot;: &quot;123.123.123-00&quot;,
        &quot;rg&quot;: &quot;12.123.123-0&quot;,
        &quot;address&quot;: &quot;av. hora do duelo&quot;,
        &quot;cep&quot;: &quot;1&quot;,
        &quot;state&quot;: &quot;sp&quot;,
        &quot;city&quot;: &quot;sp&quot;,
        &quot;district&quot;: &quot;loja de cartas&quot;,
        &quot;complement&quot;: &quot;deck&quot;,
        &quot;homeNumber&quot;: &quot;123&quot;,
        &quot;landline&quot;: &quot;11123123123&quot;,
        &quot;cellPhone&quot;: &quot;11123123123&quot;,
        &quot;emergencyName&quot;: &quot;Kaiba&quot;,
        &quot;emergencyPhone&quot;: &quot;11123123123&quot;,
        &quot;active&quot;: true,
        &quot;mondayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;mondayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;mondayActive&quot;: true,
        &quot;tuesdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;tuesdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;tuesdayActive&quot;: true,
        &quot;wednesdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;wednesdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;wednesdayActive&quot;: true,
        &quot;thursdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;thursdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;thursdayActive&quot;: true,
        &quot;fridayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;fridayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;fridayActive&quot;: true,
        &quot;saturdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;saturdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;saturdayActive&quot;: true,
        &quot;sundayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;sundayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;sundayActive&quot;: true,
        &quot;id_technicalType&quot;: &quot;19368d796535e48abc13857&quot;,
        &quot;id_agent&quot;: null,
        &quot;created_at&quot;: &quot;2021-04-16T17:11:16.000Z&quot;,
        &quot;update_at&quot;: &quot;2021-04-29T17:04:17.000Z&quot;
      },
      &quot;unit&quot;: {
        &quot;id&quot;: &quot;7f3eca21-6b00-4ed6-b800-c5196efd05d7&quot;,
        &quot;name&quot;: &quot;Kaiba CORP&quot;,
        &quot;companyName&quot;: &quot;&quot;,
        &quot;ced&quot;: &quot;&quot;,
        &quot;address&quot;: &quot;uma rua la&quot;,
        &quot;id_flag&quot;: &quot;90191715d1bb20f14f&quot;,
        &quot;cnpj&quot;: &quot;123123123213 &quot;,
        &quot;cep&quot;: &quot;12412412 &quot;,
        &quot;number&quot;: &quot;141 &quot;,
        &quot;responsibleName&quot;: &quot;User Exemple &quot;,
        &quot;telephoneResponsible&quot;: &quot;124124 &quot;,
        &quot;state&quot;: &quot; Exemple &quot;,
        &quot;city&quot;: &quot; Exemple &quot;,
        &quot;district&quot;: &quot; Exemple &quot;,
        &quot;complement&quot;: &quot; Exemple &quot;,
        &quot;landline&quot;: &quot;123123123123 &quot;,
        &quot;active&quot;: false,
        &quot;mondayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;mondayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;mondayActive&quot;: false,
        &quot;tuesdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;tuesdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;tuesdayActive&quot;: false,
        &quot;wednesdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;wednesdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;wednesdayActive&quot;: false,
        &quot;thursdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;thursdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;thursdayActive&quot;: false,
        &quot;fridayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;fridayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;fridayActive&quot;: false,
        &quot;saturdayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;saturdayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;saturdayActive&quot;: false,
        &quot;sundayEntryTime&quot;: &quot;08:00:00&quot;,
        &quot;sundayDepartureTime&quot;: &quot;17:00:00&quot;,
        &quot;sundayActive&quot;: false,
        &quot;created_at&quot;: &quot;2021-04-13T15:34:29.000Z&quot;,
        &quot;update_at&quot;: &quot;2021-04-13T15:34:29.000Z&quot;,
        &quot;flag&quot;: {
          &quot;id&quot;: &quot;90197171-05d8-4147-bb73-ee386a20f14f&quot;,
          &quot;name&quot;: &quot;Jaiden&quot;,
          &quot;id_businessGroup&quot;: &quot;246asd112c79fcbed0e1ddc&quot;,
          &quot;description&quot;: &quot;abc&quot;,
  
  &quot;active&quot;: true,
          &quot;created_at&quot;: &quot;2021-04-13T15:34:13.000Z&quot;,
          &quot;update_at&quot;: &quot;2021-04-14T18:29:17.000Z&quot;,
          &quot;businessGroup&quot;: {
            &quot;id&quot;: &quot;24611216-6c79-44e9-9f8b-bcbed0ea1ddc&quot;,
            &quot;name&quot;: &quot;Monstros de Duelo&quot;,
            &quot;id_client&quot;: &quot;9cd756d431ca3f85f746552ebd&quot;,
            &quot;description&quot;: &quot;abc&quot;,
            &quot;active&quot;: true,
            &quot;created_at&quot;: &quot;2021-04-12T21:38:51.000Z&quot;,
            &quot;update_at&quot;: &quot;2021-04-13T17:48:38.000Z&quot;,
            &quot;client&quot;: {
              &quot;id&quot;: &quot;9cd75033-36d0-431c-a3f3-85f746552ebd&quot;,
              &quot;name&quot;: &quot;Mago Negro&quot;,
              &quot;address&quot;: &quot;Rua tal&quot;,
              &quot;companyName&quot;: &quot;Empresa Com nome&quot;,
              &quot;cnpj&quot;: &quot;15.646.546/5465-46&quot;,
              &quot;cep&quot;: &quot;46465-456&quot;,
              &quot;number&quot;: &quot;&quot;,
              &quot;responsibleName&quot;: &quot;Maximillion&quot;,
              &quot;telephoneResponsible&quot;: &quot;(56) 5 4654-5465&quot;,
              &quot;state&quot;: &quot;jp&quot;,
              &quot;city&quot;: &quot;uma cidade&quot;,
              &quot;district&quot;: &quot;um bairro&quot;,
              &quot;complement&quot;: &quot;full&quot;,
              &quot;landline&quot;: &quot;(45) 6465-4654&quot;,
              &quot;cellPhone&quot;: &quot;(56) 4 5645-4654&quot;,
              &quot;active&quot;: false,
              &quot;created_at&quot;: &quot;2021-04-12T17:24:50.000Z&quot;,
              &quot;update_at&quot;: &quot;2021-04-12T17:24:50.000Z&quot;
            }
          }
        }
      },
      &quot;project&quot;: {
        &quot;id&quot;: &quot;3eefc3bc-7947-4ab7-ae44-d975eb6375c7&quot;,
        &quot;name&quot;: &quot;Duel Monsters&quot;,
        &quot;chargeHourlyOfProject&quot;: &quot;15:00:00&quot;,
        &quot;valueTechnician&quot;: &quot;60.00&quot;,
        &quot;valueClient&quot;: &quot;210.00&quot;,
        &quot;valueHourExtraTechnician&quot;: &quot;70.00&quot;,
        &quot;valueHourExtraClient&quot;: &quot;110.00&quot;,
        &quot;description&quot;: &quot;Comprar a Kaiba CORP&quot;,
        &quot;active&quot;: true,
        &quot;created_at&quot;: &quot;2021-03-25T20:20:44.000Z&quot;,
        &quot;update_at&quot;: &quot;2021-04-22T18:46:43.000Z&quot;
      },
      &quot;invoice_url&quot;: null
    }
  ]
  </code></pre>
  <p>Sorry, I try to make the code easy to read, but I can't add the <strong>bold</strong> to a <code>[{code}]</code></p>
  <pre class="lang-dart prettyprint-override"><code>@computed
    List get resultadoBusca {
      if (buscar.isEmpty) {
        return listaOSs;
      } else {
        return listaOSs
            .where((e) =&gt; e[&quot;project&quot;][&quot;name&quot;]
                .toLowerCase()
                .contains(buscar.toLowerCase()))
            .toList()
              ..where(
                  (e) =&gt; e[&quot;unit&quot;][&quot;name&quot;]
                      .toLowerCase()
                      .contains(buscar.toLowerCase())).toList()
              ..where((e) =&gt; e[&quot;serviceStatus&quot;]
                  .toLowerCase()
                  .contains(buscar.toLowerCase())).toList();
      }
    }
  </code></pre>
  <p>I try this</p>
  <pre class="lang-dart prettyprint-override"><code>    listaOSs.where((e) {
          return e[&quot;project&quot;][&quot;name&quot;]
                  .toLowerCase()
                  .contains(buscar.toLowerCase()) &amp;&amp;
              e[&quot;unit&quot;][&quot;name&quot;].contains(buscar.toLowerCase()) &amp;&amp;
              e[&quot;serviceStatus&quot;].toLowerCase().contains(buscar.toLowerCase());
        }).toList();
  </code></pre>
  <p>and this</p>
  <pre class="lang-dart prettyprint-override"><code>
      listaOSs
            .where((e) =&gt;
                e[&quot;project&quot;][&quot;name&quot;].toLowerCase().contains(buscar.toLowerCase()))
            .where((e) =&gt;
                e[&quot;unit&quot;][&quot;name&quot;].toLowerCase().contains(buscar.toLowerCase()))
            .toList();
  </code></pre>
  <p>None works, with 1 <code>.where</code> in return works, but i'm need make cascade, similar with this</p>
  <pre class="lang-js prettyprint-override"><code>    const filter = rows.filter(
        (row) =&gt; {
          const searchText = normalizedText(filterText).toLowerCase();
  
          return (
            normalizedText(row.name)?.toLowerCase().includes(searchText)
            || normalizedText(row.state)?.toLowerCase().includes(searchText)
            || normalizedText(row.city)?.toLowerCase().includes(searchText)
          );
        },
      );
  </code></pre>