each method

List<T> each(
  1. void func(
    1. T
    )
)

Call the given function on each item in the collection. @expose @param {function(T)} func This function must not modify the collection. @return {List.

Implementation

_i3.List<T> each(void Function(T) func) => _i4.callMethod(
      this,
      'each',
      [_i4.allowInterop(func)],
    );