repeatsFor<T> method

void repeatsFor<T>(
  1. Function apply
)

Implementation

void repeatsFor<T>(Function apply) {
  if (this > 0) {
    for (int i = 0; i < this; i++) {
      apply();
    }
  }
}