tryRemoveKey method
Remove key with error handling
Implementation
RxResult<V?> tryRemoveKey(Object? key) {
return RxResult.tryExecute(() {
final newMap = Map<K, V>.from(value);
final removed = newMap.remove(key);
if (removed != null) value = newMap;
return removed;
}, 'remove map key');
}