register method
Registers or updates route's pinned chrome.
Implementation
void register(
ModalRoute<dynamic> route,
GlassNavBarRegistration registration,
) {
final existing = _registry[route];
_registry[route] = registration;
if (existing == null) {
_listenTo(route.animation);
_listenTo(route.secondaryAnimation);
final listener =
_clockListeners[route] = (status) => _onRouteStatus(route, status);
route.animation?.addStatusListener(listener);
}
_scheduleNotify();
}