of static method

RouteQueueEntry? of(
  1. BuildContext context
)

Implementation

static RouteQueueEntry? of(BuildContext context) {
  final route = ModalRoute.of(context);
  if (route == null) return null;
  final queue = RouteRestorable.maybeOf(context)?.delegate.routeQueue;

  return queue?.getEntry(route);
}