forEachOrdered abstract method
void
forEachOrdered(
- void action(
- T
Performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order.
Example
GenericStream.of([1, 2, 3, 4, 5])
.forEachOrdered(print); // prints 1, 2, 3, 4, 5 in order
Implementation
void forEachOrdered(void Function(T) action);