times method
void
times(
- void action()
Executes the function action
for this times.
Example: 3.times(() => print('Hello')); // Hello... Hello... Hello
Implementation
void times(void Function() action) {
0.until(this).forEach((_) => action());
}