EqualUnmodifiableMapView<Key, Value> class

An UnmodifiableMapView which overrides ==

Inheritance

Constructors

EqualUnmodifiableMapView(Map<Key, Value> _source)
An UnmodifiableMapView which overrides ==

Properties

entries Iterable<MapEntry<Key, Value>>
The map entries of this Map.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
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<Key>
The keys of this Map.
no setterinherited
length int
The number of key/value pairs in the map.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable<Value>
The values of this Map.
no setterinherited

Methods

addAll(Map<Key, Value> other) → void
This operation is not supported by an unmodifiable map.
inherited
addEntries(Iterable<MapEntry<Key, Value>> entries) → void
This operation is not supported by an unmodifiable map.
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
This operation is not supported by an unmodifiable 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
forEach(void action(Key key, Value value)) → void
Applies action to each key/value pair of the map.
inherited
map<K2, V2>(MapEntry<K2, V2> transform(Key key, Value value)) Map<K2, V2>
Returns a new map where all entries of this map are transformed by the given convert function.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putIfAbsent(Key key, Value ifAbsent()) → Value
This operation is not supported by an unmodifiable map.
inherited
remove(Object? key) → Value?
This operation is not supported by an unmodifiable map.
inherited
removeWhere(bool test(Key key, Value value)) → void
This operation is not supported by an unmodifiable map.
inherited
toString() String
A string representation of this object.
inherited
update(Key key, Value update(Value value), {Value ifAbsent()?}) → Value
This operation is not supported by an unmodifiable map.
inherited
updateAll(Value update(Key key, Value value)) → void
This operation is not supported by an unmodifiable map.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override
operator [](Object? key) → Value?
The value for the given key, or null if key is not in the map.
inherited
operator []=(Key key, Value value) → void
This operation is not supported by an unmodifiable map.
inherited