forEach<R> method

void forEach<R>(
  1. T function(
    1. R val
    )
)

Implementation

void forEach<R>(T Function(R val) function) {
  for (int i = 0; i < length; i++) {
    function(get<R>(i));
  }
}