Flutter web: how to programmatically close app (browser tab)

Viewed 2688

I am creating a Flutter web app. When one of buttons is pressed I want to close browser tab when app is running. How to do that?

1 Answers

Just like in JavaScript, you can close the window like so:

window.close();

Here's the documentation.

Related