title: How to stop Dart's .forEach()?
body: <pre class="lang-dart prettyprint-override"><code>List data = [1, 2, 3];
  data.forEach((value) {
    if (value == 2) {
      // how to stop?
    }
    print(value);
  });
  </code></pre>
  
  <p>I tried <code>return false;</code> which works in jQuery, but it does not work in Dart.
  Is there a way to do it?</p>