свойство parent
WindowBase parentСсылка на родительское окно.
Если у этого WindowBase нет родителя, parent вернёт ссылку на сам WindowBase.
IFrameElement myIFrame = new IFrameElement(); window.document.body.elements.add(myIFrame); print(myIframe.contentWindow.parent == window) // 'true' print(window.parent == window) // 'true'
Исходный код
WindowBase get parent;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/WindowBase/parent.html