repeatsForIndexed<T> method

void repeatsForIndexed<T>(
  1. dynamic apply(
    1. int i
    )
)

Implementation

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