map<T> method
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));