title: how to query list of list in dart?
body: <p>I got data from DB.</p>
  <pre><code>final List&lt;SubCategoryModel&gt; model;
  </code></pre>
  <p>my model class looks like this:</p>
  <pre><code>class SubCategoryModel{
    final String categoryName;
    final String subCategoryName;
    final List&lt;String&gt; searchCategory;
  }
  </code></pre>
  <p>Users can search <code>categoryName</code> or <code>subCategoryName</code> or any other common name. I stored common search names inside <code>searchCategory</code>. <code>searchCategory</code> is an array.</p>
  <p>I don't understand query <code>searchCategory</code> in DB. Currently, I used this:</p>
  <pre><code>  final result =
          model.where((a) =&gt; a.subCategoryName.toLowerCase().contains(query)
          || a.categoryName.toLowerCase().contains(query));
  </code></pre>
  <p><strong>Widget</strong></p>
  <pre><code> ListView(
              children: result
                  .map&lt;InkWell&gt;((a) =&gt; InkWell(...
  </code></pre>
  <blockquote>
  <p>Example:</p>
  <p>CategoryName = Home</p>
  <p>SubCategoryName = Kitchen</p>
  <p>searchCategory = [Home,Service,Varanda,Bath Room]</p>
  <p>Need to query from above three field</p>
  </blockquote>