RxMap<K, V> class
A reactive Map
- Inheritance
- Implemented types
-
- Map<
K, V>
- Map<
- Available extensions
Properties
-
composite
→ RxCompositeMap<
K, V> -
Available on RxMap<
Create a composite version of this RxListK, V> , provided by the RxCompositeMapExtension extensionno setter -
entries
→ Iterable<
MapEntry< K, V> > -
The map entries of this Map.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether there is no key/value pair in the map.
no setteroverride
- isNotEmpty → bool
-
Whether there is at least one key/value pair in the map.
no setteroverride
-
keys
→ Iterable<
K> -
The keys of this Map.
no setteroverride
- length → int
-
The number of key/value pairs in the map.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
rx
→ RxMap<
K, V> -
Available on Map<
Create a reactive MapK, V> , provided by the RxMapExtension extensionno setter -
stream
→ Stream<
Map< K, V> > -
Stream of value changes
no setterinherited
-
unregisteredValue
→ Map<
K, V> -
Read the current value without calling register
no setterinherited
-
value
↔ Map<
K, V> -
Get the current value and register with the current zone's RxRegistrar
getter/setter pairinherited
-
values
→ Iterable<
V> -
The values of this Map.
no setteroverride
Methods
-
addAll(
Map< K, V> other) → void -
Adds all key/value pairs of
other
to this map.override -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Adds all key/value pairs of
newEntries
to this map.override -
cast<
RK, RV> () → Map< RK, RV> -
Provides a view of this map as having
RK
keys andRV
instances, if necessary.override -
clear(
) → void -
Removes all entries from the map.
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 -
copyValue(
) → Map< K, V> -
Copy the value for update emission
override
-
forEach(
void action(K key, V value)) → void -
Applies
action
to each key/value pair of the map.override -
internalSetValue(
Map< K, V> value) → void -
Internal setter for
_value
. Should only be used in Rx extensions and never externally. Does not notify.inherited -
map<
K2, V2> (MapEntry< K2, V2> convert(K key, V value)) → 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 nonexistent method or property is accessed.
inherited
-
notify(
) → void -
Notify listeners with the current value
inherited
-
notifyIfChanged<
U> (U transform()) → U -
Notify if
transform
changed the value such that shouldNotify returns trueinherited -
notifyWithValue(
Map< K, V> value) → void -
Notify listeners with the given value
inherited
-
putIfAbsent(
K key, V ifAbsent()) → V -
Look up the value of
key
, or add a new entry if it isn't there.override -
register(
) → void -
Register with the current zone's RxRegistrar if it exists
inherited
-
remove(
Object? key) → V? -
Removes
key
and its associated value, if present, from the map.override -
removeWhere(
bool test(K key, V value)) → void -
Removes all entries of this map that satisfy the given
test
.override -
replaceAll(
Map< K, V> elements) → void -
Convenience method to replace all current elements with
elements
-
run(
RxAction action, {bool notify = true}) → bool -
Run
action
with registration and notifications disabled. Will notify afteraction
is completed ifnotify
is true and the child implementation decides a notification should be sent.inherited -
shouldNotify(
Map< K, V> oldValue) → bool -
Check if the value has changed
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
K key, V update(V value), {V ifAbsent()?}) → V -
Updates the value for the provided
key
.override -
updateAll(
V update(K key, V value)) → void -
Updates all values.
override
Operators
-
operator ==(
Object other) → bool -
Returns true if both RxValue values are equal
inherited
-
operator [](
Object? key) → V? -
The value for the given
key
, ornull
ifkey
is not in the map.override -
operator []=(
K key, V value) → void -
Associates the
key
with the givenvalue
.override