I want a list.forEach and if in forEach and when this if return true I want to break this code like that
list.forEach((element){
if(element == "a"){
break
}
})
but it didn't help.
question from:https://stackoverflow.com/questions/65884531/dart-how-to-break-foreach-in-if