Result<R> flatMap<R>(Result<R> Function(T) f) { if (isSuccess) { return f(value!); } else { return Result.failure(errorKey!, errorMessage!); } }