parent property Null safety

DisplayObjectParent<DisplayObject>? parent

The DisplayObjectContainer object that contains this display object.

Use the parent property to specify a relative path to display objects that are above the current display object in the display list hierarchy.

Implementation

DisplayObjectParent? get parent => _parent;