RxMap<K, V> class

Implemented types
Available Extensions

Constructors

RxMap([Map<K, V> initial])

Properties

canUpdate bool
read-only, override
entries Iterable<MapEntry<K, V>>
The map entries of this.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Whether there is no key/value pair in the map.
read-only, override
isNotEmpty bool
Whether there is at least one key/value pair in the map.
read-only, override
keys Iterable<K>
The keys of this. [...]
read-only, override
length int
The number of key/value pairs in the map.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stream Stream<Map<K, V>>
read-only
string String
read-only
subject StreamController<Map<K, V>>
read / write, override
value Map<K, V>
@protected, read / write, override
values Iterable<V>
The values of this. [...]
read-only, override

Methods

add(K key, V value) → void
addAll(Map<K, V> other) → void
Adds all key/value pairs of other to this map. [...]
override
addAllIf(dynamic condition, Map<K, V> values) → void
addEntries(Iterable<MapEntry<K, V>> entries) → void
Adds all key/value pairs of newEntries to this map. [...]
override
addIf(dynamic condition, K key, V value) → void
addListener(Stream<Map<K, V>> rxGetX) → void
Adds a listener to stream
override
bindStream(Stream<Map<K, V>> stream) → void
Binds an existing Stream<Map> to this RxMap. You can bind multiple sources to update the value. Closing the subscription will happen automatically when the observer Widget (GetX or Obx) gets unmounted from the Widget tree.
cast<K2, V2>() Map<K2, V2>
Provides a view of this map as having RK keys and RV instances, if necessary. [...]
override
clear() → void
Removes all entries from the map. [...]
override
close() → void
Closes the stream
override
containsKey(Object key) bool
Whether this map contains the given key. [...]
override
containsValue(Object value) bool
Whether this map contains the given value. [...]
override
forEach(void f(K, V)) → void
Applies action to each key/value pair of the map. [...]
override
listen(void onData(Map<K, V>), {Function onError, void onDone(), bool cancelOnError}) StreamSubscription<Map<K, V>>
Calls callback with current value, when the value changes.
override
map<K2, V2>(MapEntry<K2, V2> transform(K, V)) Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given convert function.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
putIfAbsent(K key, V ifAbsent()) → V
Look up the value of key, or add a new entry if it isn't there. [...]
override
refresh() → void
remove(Object key) → V
Removes key and its associated value, if present, from the map. [...]
override
removeWhere(bool test(K, V)) → void
Removes all entries of this map that satisfy the given test.
override
toString() String
A string representation of this object. [...]
override
update(K key, V update(V), {V ifAbsent()}) → V
Updates the value for the provided key. [...]
override
updateAll(V update(K, V)) → void
Updates all values. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](Object key) → V
The value for the given key, or null if key is not in the map. [...]
override
operator []=(K key, V value) → void
Associates the key with the given value. [...]
override