forEach method

void forEach(
  1. void callback(
    1. T item
    )
)

Implementation

void forEach(void Function(T item) callback) {
  final length = _length;
  for (int i = 0; i < length; i++) {
    callback(_array[_getCyclicIndex(i)]!);
  }
}