opener 属性

WindowBase? opener

指向打开当前窗口的窗口的引用。

Window thisWindow = window;
WindowBase otherWindow = thisWindow.open('http://www.example.com/', 'foo');
print(otherWindow.opener == thisWindow); // 'true'

实现

WindowBase? get opener;