title: How can I filter List<Map<String, dynamic>> to get a value in Flutter?
body: <p>I have a json data and I am loading into <code>List&lt;Map&lt;String, dynamic&gt;&gt;</code> using await <strong>jsonDecode.</strong>. </p>
  
  <p>Example, I have a;</p>
  
  <ol>
  <li>amount = 12500</li>
  <li>caliber = 24</li>
  </ol>
  
  <p>and I need to filter the son to get maturity value: <strong>689.19</strong></p>
  
  <p>Also if I have a amount = 12500 and value = 689.19 I need to get caliber which is 24.</p>
  
  <p>How can I filter List> json data to get a value in Flutter?</p>
  
  <pre><code>[
     {"amount": "5000", "caliber": "12", "maturity":  "484.25"},
     {"amount": "5000", "caliber": "24", "maturity":  "275.67"},
     {"amount": "7500", "caliber": "12", "maturity":  "726.38"},
     {"amount": "7500", "caliber": "24", "maturity":  "413.51"},
     {"amount": "10000", "caliber": "12", "maturity":  "968.50"},
     {"amount": "10000", "caliber": "24", "maturity":  "551.35"},
     {"amount": "12500", "caliber": "12", "maturity":  "1210.63"},
     {"amount": "12500", "caliber": "24", "maturity":  "689.19"},
     {"amount": "15000", "caliber": "12", "maturity":  "1452.76"},
     {"amount": "15000", "caliber": "24", "maturity":  "827.03"},
     {"amount": "15000", "caliber": "12", "maturity":  "1694.89"},
     {"amount": "17500", "caliber": "24", "maturity":  "964.87"},
     {"amount": "17500", "caliber": "36", "maturity":  "727.66"},
     {"amount": "17500", "caliber": "48", "maturity":  "613.53"},
     {"amount": "17500", "caliber": "60", "maturity":  "548.44"},
     {"amount": "20000", "caliber": "12", "maturity":  "1937.01"},
     {"amount": "20000", "caliber": "24", "maturity":  "1102.71"}
  ]
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  With @Muldec help I finally got it. </p>
  
  <p>First I load above son to  List as shown below. And apply @Muldec answer and it worked.</p>
  
  <pre><code>List&lt;Map&gt; myList = List&lt;Map&gt;.from(jsonDecode(jsonFastCalculation) as List);
  final item = myList.firstWhere((e) =&gt; e['amount'] == '12500' &amp;&amp; e['caliber'] == '24');
  print(item['maturity']);
  </code></pre>