update method

  1. @override
void update(
  1. NodeValue nodeValue
)
override

Copies the all values of the given node to the current node value.

Implementation

@override
void update(NodeValue nodeValue) {
  NodeValueImpl n2 = nodeValue as NodeValueImpl;
  _key = n2.key;
  _value.clear();
  for (var e in n2._value.entries) {
    _value[e.key] = e.value;
  }
  _type = n2.type;
  _description.clear();
  for (var e in n2._description.entries) {
    _description[e.key] = e.value;
  }
  _lastModified = nodeValue._lastModified;
}