removeListener method

  1. @override
void removeListener(
  1. VoidCallback listener
)
override

Removes GoRouter's listener as specified by its Listenable. GoRouteInformationProvider uses this method when disposing, so that it removes its callback when destroyed. Check out the internal implementation of GoRouter and GoRouteInformationProvider to see this in action.

Implementation

@override
void removeListener(VoidCallback listener) => _routerListener = null;