unwrapOr method
FutureOr<T>
unwrapOr(
- T fallback
)
override
Returns the contained value, or the fallback
if the Outcome is in an
Err or None state.
Implementation
@override
FutureOr<T> unwrapOr(T fallback) => value.then((e) => e.unwrapOr(fallback));