maybeOf static method

RoutePresentation? maybeOf(
  1. BuildContext context
)

The nearest published presentation, or null when none is.

Implementation

static RoutePresentation? maybeOf(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<RoutePresentationScope>()
    ?.presentation;