routeOf static method

ModalRoute? routeOf(
  1. BuildContext context, {
  2. bool listen = false,
})

The ModalRoute currently bound to the nearest LAsyncRouteScope or LRouteScope.

Implementation

static ModalRoute<dynamic>? routeOf(BuildContext context,
        {bool listen = false}) =>
    LRouteScope.routeOf(context, listen: listen);