flatMapResource<R> method
Implementation
ResourceTry<R> flatMapResource<R>(
ResourceTry<R> Function(SuccessT value) transform) {
if (isSuccess) {
return transform(getOrThrow());
} else {
return ResourceTry.failure(exceptionOrNull()!);
}
}