foreach method
void
foreach(
- void f(
- 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!);
}
}