times method Null safety

void times(
  1. 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());
    }