routeOf static method
The ModalRoute currently bound to the nearest LRouteScope.
Implementation
static ModalRoute<dynamic>? routeOf(BuildContext context,
{bool listen = false}) =>
_RouteScopeProvider.of(context, listen: listen)?.route;
The ModalRoute currently bound to the nearest LRouteScope.
static ModalRoute<dynamic>? routeOf(BuildContext context,
{bool listen = false}) =>
_RouteScopeProvider.of(context, listen: listen)?.route;