mapFailure method
Implementation
Result<T> mapFailure(
$<String, String> Function(String errorKey, String errorMessage) f) {
if (isSuccess) {
return this;
} else {
final ee = f(errorKey!, errorMessage!);
return Result<T>.failure(ee.$0, ee.$1);
}
}