doNext<U> method
Runs transform only if this is a success. Otherwise propagates loading/error.
Implementation
KResult<U?> doNext<U>(U? Function(T? data) transform, {bool failSilently = true}) {
if (!failSilently) {
return isSuccess ? KResult.success(transform(data)) : KResult.error(message);
}
return tryRun<U>(() => transform(data));
}