inspect method
Calls the provided closure with a reference to the contained value
Implementation
@pragma("vm:prefer-inline")
Option<T> inspect(Function(T) f) {
if (v == null) {
return this;
} else {
f(v!);
return this;
}
}
Calls the provided closure with a reference to the contained value
@pragma("vm:prefer-inline")
Option<T> inspect(Function(T) f) {
if (v == null) {
return this;
} else {
f(v!);
return this;
}
}