session/local/modal_route_lookup library

Functions

isUnderCurrentModalRoute(Element element) → bool
Whether element sits under the navigator's current ModalRoute.
modalRouteForElement(Element element) → ModalRoute?
Returns the nearest route scope for element without registering an inherited-widget dependency. null means the element is outside a route.