title: Search inside the List<Map> in flutter dart?
body: <p>I want to filter the List by searching in the search bar but it does not work.</p>
  <pre><code>for (var map in offersList) {
        if (map.containsKey(&quot;foodname&quot;)) {
          if (map[&quot;foodname&quot;] == query) {
            setState(() {
              offersList.clear();
              offersList.add(map);
            });
          }
        }
      }
  </code></pre>