tryClear method

  1. @Deprecated(_kTryDeprecated)
RxResult<void> tryClear()

Clear map with error handling

Implementation

@Deprecated(_kTryDeprecated)
RxResult<void> tryClear() {
  return RxResult.tryExecute(() {
    if (value.isNotEmpty) {
      value = <K, V>{};
    }
  }, 'clear map');
}