我正在使用flutter_inappwebview并且我已经让它工作了,但我想以编程方式关闭 Web 视图并触发onCloseWindow
以发出事件。
我尝试导入dart:html as html
尝试使用的东西,html.window.close
但我的 linter 似乎不喜欢那样。我得到Error: Not found: 'dart:html
和Error: undefined name
窗口on top of a warning:
避免在 Flutter Web 插件包之外使用纯 Web 库。`。
如何关闭此窗口以触发onCloseWindow
?