of static method Null safety

NavigationContext? of(
  1. BuildContext context
)

Implementation

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