foreach method

void foreach(
  1. void f(
    1. T
    )
)

do side-effect operation if this value is not empty

Implementation

void foreach(void Function(T) f) {
  if (this == null) {
    return;
  } else {
    f(this!);
  }
}