RxErrorHandling<T> extension
Error handling extensions for reactive values
- on
-
- Rx<
T>
- Rx<
Methods
-
chainSafe<
R> (RxResult< R> operation(T value), {String? context}) → RxResult<R> -
Available on Rx<
Chain operations with error handlingT> , provided by the RxErrorHandling extension -
computeSafe<
R> (R computation(T value)) → Rx< R?> -
Available on Rx<
Create error-safe computed valueT> , provided by the RxErrorHandling extension -
listenSafe(
void listener(T value), {void onError(RxException error)?}) → void -
Available on Rx<
Listen with error handlingT> , provided by the RxErrorHandling extension -
setWithValidation(
T newValue, bool validator(T value), {String? validationMessage}) → RxResult< void> -
Available on Rx<
Set value with validationT> , provided by the RxErrorHandling extension -
transformSafe<
R> (R transformer(T value), {String? context}) → RxResult< R> -
Available on Rx<
Transform value with error handlingT> , provided by the RxErrorHandling extension -
tryGetValue(
{String? context}) → RxResult< T> -
Available on Rx<
Get value with error handlingT> , provided by the RxErrorHandling extension -
trySetValue(
T newValue, {String? context}) → RxResult< void> -
Available on Rx<
Set value with error handlingT> , provided by the RxErrorHandling extension -
tryUpdate(
T updater(T current), {String? context}) → RxResult< void> -
Available on Rx<
Update value with error handlingT> , provided by the RxErrorHandling extension -
updateWithRetry(
T updater(T current), {int? maxRetries, Duration? retryDelay, String? context}) → Future< RxResult< void> > -
Available on Rx<
Update value with retry logicT> , provided by the RxErrorHandling extension -
valueOr(
T fallback) → T -
Available on Rx<
Get value or return fallbackT> , provided by the RxErrorHandling extension -
valueOrElse(
T fallback()) → T -
Available on Rx<
Get value or compute fallbackT> , provided by the RxErrorHandling extension