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 {
  final root = this.root;
  return (root is Stage) ? root : null;
}