zaagan
7/11/2019 - 12:39 AM

Dart For In Loop

Dart For In Loop

/* Syntax */
for (variablename in object){  
   //statement or block to execute  
}

/* Example */
var obj = [1,2,3]; 
for (var prop in obj) { 
    print(prop); 
} 
/* Output : 
    1
    2
    3
*/