Dart Break foreach

//you cant break in a foreach function in dart,
//but use normal for loop and break in it

  for (var number in id) {
    var index = id.indexOf(number);

    print('Origin forEach loop');

    for (int i = 0; i < 1; i++) {
      print("for loop");
    }

    break;
  }
Adorable Alpaca