of static method

Implementation

static NestedRouterDelegate of(BuildContext context) {
  final delegate = Router.of(context).routerDelegate;
  assert(delegate is NestedRouterDelegate);
  return delegate as NestedRouterDelegate;
}