ForEach class

Iterates over the list elements and calls the provided function for each element. The function should take one argument: element.

var lst = [1, 2, 3];
lst.forEach(fun(element) {
    print(element);
});

Async example:
```js
var lst = [1, 2, 3];
lst.forEach(async fun(element) {
    await wait(1000);
    print(element);
});
Inheritance

Constructors

ForEach()

Properties

arity int
finalinherited
function NativeMethodFunction<List<Object>, int>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
methodName String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetType NativeMethodTarget
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited