unwrapOr method
T
unwrapOr(
- T defaultValue
Returns the contained Some value or a provided default.
Implementation
T unwrapOr(T defaultValue) {
if (v == null) {
return defaultValue;
} else {
return v!;
}
}