notifyTreeChanged method

void notifyTreeChanged (
  1. T root,
  2. [int initialCount]
)

Call this method when the tree has been completly changed.

Implementation

void notifyTreeChanged(T root, [int initialCount]) {
  assert(root != null);
  _list.clear();
  this.root = root;
  _count = null;
  _offset = 0;
  if (initialCount != null) {
    assert(initialCount == count);
    _count = initialCount;
  }
}