dispose method

void dispose()

Implementation

void dispose() {
  children.clear();
  parent = null;
}