addPopStateListener method

  1. @override
void addPopStateListener(
  1. EventListener fn
)
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(EventListener fn) {
  domWindow.addEventListener('popstate', getOrCreateDomEventListener(fn));
}