Executes the given function action specified number of times.
action
times
Unit repeat(Int times, Unit Function(Int) action) { for (var i = 0; i < times; i++) { action(i); } }