mapError method
If this is an Error, applies transform to the failure and wraps the
outcome in a new Error. Otherwise propagates the Success unchanged.
Useful for translating low-level failures (e.g. a transport-level
Failure.network) into a domain-specific failure before it bubbles up.
Implementation
@override
Result<T> mapError(Failure Function(Failure failure) transform) => this;