unsubscribe method
Unsubscribe screenAware
.
screenAware
is no longer informed about changes to its screen. If the given argument was
subscribed to multiple types, this will unregister it (once) from each type.
Implementation
void unsubscribe(ScreenTransitionAware screenAware) {
assert(screenAware != null);
for (final R route in _listeners.keys) {
final Set<ScreenTransitionAware>? subscribers = _listeners[route];
subscribers?.remove(screenAware);
}
}