To break the forEach loop in dart we use the try-catch clause . Here are the steps to achieve this. Wrap the whole forEach loop inside a try block. On the step, you want to break, throw an exception.
Read moreWhich statement exits current iteration of a loop?
The CONTINUE statement exits the current iteration of a loop, either conditionally or unconditionally, and transfers control to the next iteration of either the current loop or an enclosing labeled loop.
Read more