forEach method

void forEach(
  1. void fn(
    1. Point point
    )
)

Applies a function to each Point in the list.

  • fn: The function to apply to each Point.

Implementation

void forEach(void Function(Point point) fn) {
  for (final ptr in this) {
    fn(ptr.ref);
  }
}