trySetData method
Manually set data state with error handling
Implementation
RxResult<void> trySetData(T data) {
return RxResult.tryExecute(() {
value = AsyncSnapshot.withData(ConnectionState.done, data);
}, 'set future data');
}
Manually set data state with error handling
RxResult<void> trySetData(T data) {
return RxResult.tryExecute(() {
value = AsyncSnapshot.withData(ConnectionState.done, data);
}, 'set future data');
}