ForEachCounter method

bool ForEachCounter(
  1. bool step(
    1. dynamic element,
    2. int index
    )
)

Implementation

bool ForEachCounter(bool Function(dynamic element, int index) step) {
  for(var i = 0; i<this.length; i++) {
    if(step(this[i],i) == false)
      return false;
  }

  return true;
}