tryClear method
Clear set with error handling
Implementation
@Deprecated(_kTryDeprecated)
RxResult<void> tryClear() {
return RxResult.tryExecute(() {
if (value.isNotEmpty) {
value = <T>{};
}
}, 'clear set');
}
Clear set with error handling
@Deprecated(_kTryDeprecated)
RxResult<void> tryClear() {
return RxResult.tryExecute(() {
if (value.isNotEmpty) {
value = <T>{};
}
}, 'clear set');
}