RxNullableErrorHandling<T> extension
Error handling for nullable reactive values
- on
-
- Rx<
T?>
- Rx<
Properties
- hasValue → bool
-
Available on Rx<
Check if value is not nullT?> , provided by the RxNullableErrorHandling extensionno setter
Methods
-
orElse(
T fallback) → T -
Available on Rx<
Get value if not null, otherwise return fallbackT?> , provided by the RxNullableErrorHandling extension -
orElseGet(
T fallback()) → T -
Available on Rx<
Get value if not null, otherwise compute fallbackT?> , provided by the RxNullableErrorHandling extension -
requireValue(
[String? context]) → T -
Available on Rx<
Get non-null value or throw with contextT?> , provided by the RxNullableErrorHandling extension -
tryRequireValue(
[String? context]) → RxResult< T> -
Available on Rx<
Get non-null value or return resultT?> , provided by the RxNullableErrorHandling extension