MapCopyWith<Result, Key, Value, Copy> class abstract Copy-With

Interface used for Maps in chained copyWith methods All methods return a new modified map and do not modify the original map.

Constructors

MapCopyWith(Map<Key, Value> value, ItemCopyWith<Copy, Value, Result> item, Then<Map<Key, Value>, Result> then)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$update(Map<Key, Value> transform(Map<Key, Value>)) → Result
Applies any transformer function on the value
get(Key key) → Copy?
Access the copyWith interface for the value of key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(Key key, Value v) → Result
Returns a new map with value inserted at key
putAll(Map<Key, Value> v) → Result
Returns a new map with all entries inserted to the map
remove(Key key) → Result
Returns a new map without key
replace(Key key, Value v) → Result
Returns a new map with the value at key replaced with a new value
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Key key) → Copy?
Access the copyWith interface for the value of key