While loop in dart flutter

void main() {
 bool isDone = false;
 int i = 1;
  while (!isDone) {
     if (i >= 10) {
         isDone = true;
     }
      i++;   }
 }

Check for loop here

Spread the love

Comments

Leave a Reply