RxMapExtensions<K, V> extension

Enhanced reactive map operations with comprehensive error handling

on

Properties

entries Iterable<MapEntry<K, V>>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
isEmpty bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
isNotEmpty bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
keys Iterable<K>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
length int

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter
values Iterable<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

no setter

Methods

addAll(Map<K, V> other) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add all entries (convenience method)
addEntries(Iterable<MapEntry<K, V>> newEntries) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add entries (convenience method)
cast<RK, RV>() Map<RK, RV>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

clear() → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Clear map (convenience method)
containsKey(Object? key) bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

containsValue(Object? val) bool

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

forEach(void action(K key, V value)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

keyOr(K key, V fallback) → V

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe key access with fallback
map<K2, V2>(MapEntry<K2, V2> f(K key, V value)) Map<K2, V2>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

putIfAbsent(K key, V ifAbsent()) → V

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Put if absent (convenience method)
refresh() → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Convenience method to refresh listeners
remove(Object? key) → V?

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove key (convenience method)
removeWhere(bool predicate(K key, V value)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove where (convenience method)
tryAddAll(Map<K, V> other) RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add all entries with error handling
tryAddEntries(Iterable<MapEntry<K, V>> newEntries) RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Add entries with error handling
tryClear() RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Clear map with error handling
tryGetKey(K key) RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe key access with error handling
tryPutIfAbsent(K key, V ifAbsent()) RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Put if absent with error handling
tryRemoveKey(Object? key) RxResult<V?>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove key with error handling
tryRemoveWhere(bool predicate(K key, V value)) RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Remove where with error handling
trySetKey(K key, V val) RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Set key-value with error handling
tryUpdate(K key, V update(V value), {V ifAbsent()?}) RxResult<V>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update value with error handling
tryUpdateAll(V update(K key, V value)) RxResult<void>

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update all values with error handling
update(K key, V update(V value), {V ifAbsent()?}) → V

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update value (convenience method)
updateAll(V update(K key, V value)) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Update all values (convenience method)

Operators

operator [](Object? key) → V?

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Safe access operations
operator []=(K key, V val) → void

Available on Rx<Map<K, V>>, provided by the RxMapExtensions extension

Set key-value (convenience method)