tryClear method
Clear map with error handling
Implementation
RxResult<void> tryClear() {
return RxResult.tryExecute(() {
if (value.isNotEmpty) {
value = <K, V>{};
}
}, 'clear map');
}
Clear map with error handling
RxResult<void> tryClear() {
return RxResult.tryExecute(() {
if (value.isNotEmpty) {
value = <K, V>{};
}
}, 'clear map');
}