unwrapOrElse method
T
unwrapOrElse(
- T f()
Returns the contained Some value or computes it from a closure.
Implementation
@pragma("vm:prefer-inline")
T unwrapOrElse(T Function() f) {
if (v == null) {
return f();
} else {
return v!;
}
}