RxNullableErrorHandling<T> extension

Error handling for nullable reactive values

on

Properties

hasValue bool

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Check if value is not null
no setter

Methods

orElse(T fallback) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get value if not null, otherwise return fallback
orElseGet(T fallback()) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get value if not null, otherwise compute fallback
requireValue([String? context]) → T

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get non-null value or throw with context
tryRequireValue([String? context]) RxResult<T>

Available on Rx<T?>, provided by the RxNullableErrorHandling extension

Get non-null value or return result