addPopStateListener method Null safety

VoidCallback addPopStateListener(
  1. EventListener fn
)

Adds a listener to the popstate event and returns a function that, when invoked, removes the listener.

Implementation

ui.VoidCallback addPopStateListener(EventListener fn);