of static method

get current delegate through context

Implementation

static StackRouterDelegate of(BuildContext context) {
  return Router.of(context).routerDelegate as StackRouterDelegate;
}