of static method

Implementation

static NavStackController of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<InheritedNavStackController>()!.controller;