tryFirst property
Implementation
@Deprecated('Use firstOrNull instead. Will be removed in v3.0.0.')
RxResult<T> get tryFirst {
return RxResult.tryExecute(() {
if (value.isEmpty) {
throw const RxException('Cannot get first element of empty set');
}
return value.first;
}, 'get first element from set');
}