SunnyObservableMapMap<K1, K, V> class

Inheritance

Constructors

SunnyObservableMapMap([String? debugLabel, DiffEquality? listDiffDelegator])

Properties

changeController → StreamController<MapDiffs<K1?, SunnyObservableMap<K, V>>>
finalinherited
changeStream → Stream<MapDiffs<K1?, SunnyObservableMap<K, V>?>>
no setterinherited
debugLabel ↔ String?
getter/setter pairinherited
entries → Iterable<MapEntry<K1?, SunnyObservableMap<K, V>>>
The map entries of this Map.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether there is no key/value pair in the map.
no setterinherited
isNotEmpty → bool
Whether there is at least one key/value pair in the map.
no setterinherited
keys → Iterable<K1?>
The keys of this Map.
no setterinherited
keysStream → HStream<Iterable<K1?>>
Allows for observation of the maps keys as a list. Provides a means of disposing
no setterinherited
length → int
The number of key/value pairs in the map.
no setterinherited
listDiffDelegator → DiffEquality?
final
log → Logger
final
loggerName → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → HStream<Map<K1?, SunnyObservableMap<K, V>?>>
no setterinherited
subscribedTo ← StreamSubscription
no getterinherited
values → Iterable<SunnyObservableMap<K, V>>
The values of this Map.
no setterinherited
valueStream → ValueStream<Iterable<SunnyObservableMap<K, V>>>
Allows for observation of the values as a list. Provides a means of disposing
no setterinherited

Methods

addAll(Map<K1?, SunnyObservableMap<K, V>> other) → void
Adds all key/value pairs of other to this map.
inherited
addDisposer(EmptyCallback dispose) → void
inherited
addEntries(Iterable<MapEntry<K1?, SunnyObservableMap<K, V>>> newEntries) → void
Adds all key/value pairs of newEntries to this map.
inherited
applyChanges(MapDiffs<K1?, SunnyObservableMap<K, V>> changes) → void
inherited
call(K1? key) → SunnyObservableMap<K, V>?
inherited
cast<RK, RV>() → Map<RK, RV>
Provides a view of this map as having RK keys and RV instances, if necessary.
inherited
clear() → void
Removes all entries from the map.
inherited
containsKey(Object? key) → bool
Whether this map contains the given key.
inherited
containsValue(Object? value) → bool
Whether this map contains the given value.
inherited
dispose() → Future
inherited
forEach(void action(K1? key, SunnyObservableMap<K, V> value)) → void
Applies action to each key/value pair of the map.
inherited
getOrPut(K1? key, FutureOr<SunnyObservableMap<K, V>> factory(K1? id)) → FutureOr<SunnyObservableMap<K, V>>
inherited
keyStream(K1? key) → ValueStream<SunnyObservableMap<K, V>?>
Allows for observation of a single map key.
inherited
map<K2, V2>(MapEntry<K2, V2> transform(K1? key, SunnyObservableMap<K, V> value)) → Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given convert function.
inherited
newBuilder() → MapDiffs<K1?, SunnyObservableMap<K, V>>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(MapChangeListener<K1?, SunnyObservableMap<K, V>> listener, {bool? fireImmediately}) → Dispose
inherited
observeKey(K1? key, Consumer<SunnyObservableMap<K, V>?> react, {bool? fireImmediately}) → Dispose
inherited
push(Object? key, SunnyObservableMap<K, V> value) → void
Forces an update, even in cases where the value at the key has not changed or is the same instance.
inherited
putIfAbsent(K1? key, SunnyObservableMap<K, V> ifAbsent()) → SunnyObservableMap<K, V>
Look up the value of key, or add a new entry if it isn't there.
inherited
remove(Object? key) → SunnyObservableMap<K, V>?
Removes key and its associated value, if present, from the map.
inherited
removeQuiet(Object? key) → void
Doesn't trigger observers
inherited
removes(Map<K1?, dynamic> newData) → Set<K1?>
inherited
removeWhere(bool test(K1? key, SunnyObservableMap<K, V> value)) → void
Removes all entries of this map that satisfy the given test.
inherited
safeCast<KK, VV>() → Map<RK, RV>
inherited
sync(FutureOr<Map<K1?, SunnyObservableMap<K, V>>> newMap, {bool async = true}) → Future<MapDiffs<K1?, SunnyObservableMap<K, V>>>
inherited
syncAndListenFrom(Stream<Map<K1?, SunnyObservableMap<K, V>>> stream, {FutureOr<Map<K1?, SunnyObservableMap<K, V>>?>? start}) → Future
inherited
syncFromMapList(HStream<Map<K1, Map<K, V>>> replacement) → SunnyObservableMap<K1?, SunnyObservableMap<K, V>>
takeFromMapMap(Map<K1, Map<K, V>> replacement) → void
toString() → String
A string representation of this object.
override
update(K1? key, SunnyObservableMap<K, V> update(SunnyObservableMap<K, V> value), {SunnyObservableMap<K, V> ifAbsent()?}) → SunnyObservableMap<K, V>
Updates the value for the provided key.
inherited
updateAll(SunnyObservableMap<K, V> update(K1? key, SunnyObservableMap<K, V> value)) → void
Updates all values.
inherited
watchKey(K1? key) → HStream<SunnyObservableMap<K, V>?>
inherited

Operators

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