addPopStateListener method Null safety

  1. @override
VoidCallback addPopStateListener(
  1. EventListener fn
)
override

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

Implementation

@override
ui.VoidCallback addPopStateListener(html.EventListener fn) {
  _platformLocation.addPopStateListener(fn);
  return () => _platformLocation.removePopStateListener(fn);
}