onEach method

Iterable<T> onEach(
  1. void action(
    1. T
    )
)

Performs the given action on each element and returns the collection itself afterwards.

Implementation

Iterable<T> onEach(Unit Function(T) action) {
  forEach(action);
  return this;
}