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?
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?
Just like in JavaScript, you can close the window like so:
window.close();
Here's the documentation.