opener 属性

WindowBase? opener

引用创建此窗口的窗口。

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

实现

WindowBase? get opener;