map<R> method
Implementation
Result<R> map<R>(R Function(T) f) {
if (isSuccess) {
return Result.success(f(value!));
} else {
return Result<R>(
isSuccess: false,
errorKey: errorKey,
errorMessage: errorMessage,
);
}
}