SunnyObservableMapList<K, L> class

Inheritance

Constructors

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

Properties

changeController → StreamController<MapDiffs<K?, SunnyObservableList<L>>>
finalinherited
changeStream → Stream<MapDiffs<K?, SunnyObservableList<L>?>>
no setterinherited
debugLabel ↔ String?
getter/setter pairinherited
entries → Iterable<MapEntry<K?, SunnyObservableList<L>>>
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<K?>
The keys of this Map.
no setterinherited
keysStream → HStream<Iterable<K?>>
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
no setterinherited
loggerName → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → HStream<Map<K?, SunnyObservableList<L>?>>
no setterinherited
subscribedTo ← StreamSubscription
no getterinherited
values → Iterable<SunnyObservableList<L>>
The values of this Map.
no setterinherited
valueStream → ValueStream<Iterable<SunnyObservableList<L>>>
Allows for observation of the values as a list. Provides a means of disposing
no setterinherited

Methods

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

Operators

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