mapOrElse<U> method
Maps a Result<T, E>
to U
by applying a function to a contained
Ok
value, or a fallback function to a contained Err
value.
Implementation
Future<U> mapOrElse<U>(U Function(T) op, U Function(E) errOp) =>
then((result) => result.mapOrElse(op, errOp));