title: How to stop/break forEach loop in dart /flutter?
body: <p>I want to break the forEach loop after the for loop execution is done.</p>
  
  <pre><code>  void main() {
        var id = [1, 2, 3, 4, 5];
  
  
        id.asMap().forEach((index, number) {
          print('ForEach loop');
  
          for (int i = 0; i &lt; 1; i++) {
            print("for loop");
          }
        });
      }
  </code></pre>