of static method

Implementation

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