Do the callback n times, argument decreases
void downFrom(int n, Function(int i) callback) { for (var i = n; i > 0; i--) { callback(i); } }