M<K, V> class abstract

Annotations
  • @visibleForOverriding

Constructors

M()

Properties

entries Iterable<MapEntry<K, V>>
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if there is no key/value pair in the map.
no setter
isNotEmpty bool
Returns true if there is at least one key/value pair in the map.
no setter
iterator Iterator<MapEntry<K, V>>
no setter
keys Iterable<K>
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unlock Map<K, V>
Returns a regular Dart (mutable) Map.
no setter
values Iterable<V>
no setter

Methods

add({required K key, required V value}) M<K, V>
Returns a new map containing the current map plus the given key:value. However, if the given key already exists in the set, it will remove the old one and add the new one.
addAll(IMap<K, V> imap, {bool keepOrder = false}) M<K, V>
The entries of the given imap will be added to the original map. Note: imap entries that already exist in the original map will overwrite those of the original map.
addEntries(Iterable<MapEntry<K, V>> entries) M<K, V>
The entries will be added to the original map. Note: entries that already exist in the original map will overwrite those of the original map, in place (keeping order).
addMap(Map<K, V> map) M<K, V>
The map entries will be added to the original map. Note: map entries that already exist in the original map will overwrite those of the original map, in place (keeping order).
any(bool test(K key, V value)) bool
anyEntry(bool test(MapEntry<K, V>)) bool
cast<RK, RV>(ConfigMap config) Map<RK, RV>
Provides a view of this map as having RK keys and RV instances. May return M<RK, RV> or Map<RK, RV>.
contains(K key, V value) bool
Returns true if this map contains the given key with the given value.
containsEntry(MapEntry<K, V> entry) bool
containsKey(K? key) bool
Returns true if this map contains the given key.
containsKeyOrM(K? key) → dynamic
Used by tail-call-optimisation. Returns type bool or M.
containsValue(V? value) bool
Returns true if this map contains the given value.
everyEntry(bool test(MapEntry<K, V>)) bool
forEach(void f(K key, V value)) → void
getFlushed(ConfigMap? config) Map<K, V>
Returns the flushed map (flushes it only once). It is an error to use the flushed map outside of the M class.
getVOrM(K key) → dynamic
Used by tail-call-optimisation. Returns type V or M.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(K key) M<K, V>
removeWhere(bool predicate(K key, V value)) M<K, V>
Removes all entries of this map that satisfy the given predicate.
toString() String
A string representation of this object.
inherited
where(bool test(K key, V value)) Map<K, V>

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](K key) → V?