import 'package:web/web.dart' as web; /// Puts the address back to the site root once a share link has been read, /// so a reload, a bookmark or a copied address does not carry the link, or /// its channel secret, any further (#1309). The history entry's state is /// kept: Flutter keeps its own navigation state there. void clearShareLinkFromAddressBar() { web.window.history.replaceState(web.window.history.state, '', '/'); }