QueryParamsListener constructor

QueryParamsListener(
  1. void onUpdate(
    1. Map<String, String>
    )
)

Implementation

QueryParamsListener(this.onUpdate) {
  html.window.onPopState.listen((event) {
    _handleUrlChange();
  });
  _handleUrlChange(); // Handle initial URL
}