parent top-level property

WindowProxy get parent

Refers to either the parent WindowProxy, or itself.

It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.

MDN Reference

Implementation

_i3.WindowProxy get parent => _i4.getProperty(
      _self,
      'parent',
    );