cons of dart stack overflow code example
Example 1: stackover flow dart forloop
import 'dart:html';
import 'dart:async';
main() async {
List li = ["-", "\\", "|", "/"];
for (var i = 0; i < 400000000; i++) {
querySelector('#test').text = li[i % 4];
(await new Future.delayed(const Duration(seconds: 1)));
}
}
Example 2: forloop in dart stack overflow
for (var i = 0; i < li.length; i++) {
// TO DO
var currentElement = li[i];
}