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
@override
Result<U, E> map<U extends Object>(U Function(T) op) => Ok(op(_ok));