map<T> method

  1. @override
Result<T, F> map<T>(
  1. T transform(
    1. S value
    )
)
override

Map the success value to a new type

If this is a Success, applies transform to the value. If this is a Failure, returns the failure unchanged.

Implementation

@override
Result<T, F> map<T>(T Function(S value) transform) =>
    Success(transform(value));