title: Get value from Instance in Flutter
body: <p>I am making a search request on the List with the Provider pattern.</p>
  
  <pre><code>List&lt;Device&gt; _devices = [
      Device(one: 'Apple', two: 'iphone'),
      Device(one: 'Samsung', two: 'Galaxy')
  ];
  </code></pre>
  
  <p>And Query is like this</p>
  
  <pre><code>List&lt;Device&gt; queryQuery(String value) {
  return _devices
      .where((device) =&gt; device.one.toLowerCase().contains(value.toLowerCase()))
      .toList();
  </code></pre>
  
  <p>the result I expect to get is <strong>iphone</strong> when I passed the value <strong>Apple</strong>.</p>
  
  <p>But the result on the screen that I got is <strong>[instance of ‘Device’]</strong>
  when I code like this </p>
  
  <pre><code>child: Text('${deviceData.getDevice('Apple')}'
  </code></pre>
  
  <p>I do know I should be using some kind of key using <strong>two</strong>... but I have no idea :-(</p>