stage property

Stage stage

The Stage of this display object.

If this display object is not added to the display list, the stage property returns null.

Implementation

Stage get stage {
  DisplayObject root = this.root;
  return (root is Stage) ? root : null;
}