addPopStateListener method Null safety
override
Registers an event listener for the popstate
event.
See: https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate
Implementation
@override
void addPopStateListener(html.EventListener fn) {
html.window.addEventListener('popstate', fn);
}