unsubscribe method
Unsubscribe routeAware
.
routeAware
is no longer informed about changes to its route. If the given argument was
subscribed to multiple types, this will unregister it (once) from each type.
Implementation
void unsubscribe(TransitionRouteAware routeAware) {
for (var route in _listeners.keys) {
final subscribers = _listeners[route];
subscribers?.remove(routeAware);
}
}