map<U extends Object> method
Maps a Result<T, E>
to Result<U, E>
by applying a function to a
contained Ok
value, leaving an Err
value untouched.
Implementation
Future<Result<U, E>> map<U extends Object>(U Function(T) op) =>
then((result) => result.map(op));