map<U extends Object> method

  1. @override
Result<U, E> map<U extends Object>(
  1. U op(
    1. T
    )
)
override

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));