dispose method

  1. @mustCallSuper
void dispose()

Dispose of the GDisplayObject instance and its resources.

Remove the current object from any container it belongs to and release any internal resources.

Implementation

@mustCallSuper
void dispose() {
  if ($currentDrag == this) {
    $currentDrag = null;
  }
//    _stage = null;
  $parent = null;
  userData = null;
  name = null;
  $disposePointerSignals();
  $disposeDisplayListSignals();
  $disposeRenderSignals();
}