of static method

Implementation

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