of static method

NavContext? of(
  1. BuildContext context
)

Implementation

static NavContext? of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<NavContext>();