tryGetValue method
Get value with error handling
Implementation
RxResult<T> tryGetValue() {
if (_lastError != null) {
return RxResult.failure(_lastError!);
}
return RxResult.success(value);
}
Get value with error handling
RxResult<T> tryGetValue() {
if (_lastError != null) {
return RxResult.failure(_lastError!);
}
return RxResult.success(value);
}