forEach method

void forEach(
  1. void callback(
    1. T,
    2. num?
    )?
)

Implementation

void forEach(void Function(T, num?)? callback) {
  callMethod(
      this, 'forEach', [callback == null ? null : allowInterop(callback)]);
}