okOr<E extends Object> method
Result<T, E>
okOr<E extends Object>(
- E err
Transforms the Option
Implementation
@pragma("vm:prefer-inline")
Result<T, E> okOr<E extends Object>(E err) {
if (v == null) {
return Err(err);
} else {
return Ok(v!);
}
}