map<NV, NE extends Object> method

  1. @override
Result<NV, NE> map<NV, NE extends Object>({
  1. NV value(
    1. V v
    )?,
  2. NE exception(
    1. E e
    )?,
})
override

Implementation

@override
Result<NV, NE> map<NV, NE extends Object>({
  NV Function(V v)? value,
  NE Function(E e)? exception,
}) =>
    exceptionOf<NV, NE>(exception?.call(_exception) ?? _exception as NE);