MapChangeRecord<K, V> class

A ChangeRecord that denotes adding, removing, or updating a map.

Implemented types

Constructors

MapChangeRecord(K key, V? oldValue, V? newValue)
Create an update record of key from oldValue to newValue.
const
MapChangeRecord.insert(K key, V? newValue)
Create an insert record of key and newValue.
const
MapChangeRecord.remove(K key, V? oldValue)
Create a remove record of key with a former oldValue.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
isInsert bool
True if this key was inserted.
final
isRemove bool
True if this key was removed.
final
key → K
The map key that changed.
final
newValue → V?
The new value associated with this key.
final
oldValue → V?
The previous value associated with this key.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Map<K, V> map) → void
Apply this change record to map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override