of static method

Implementation

static RRouterDelegate of(BuildContext context) {
  final delegate = Router.of(context).routerDelegate;
  assert(delegate is RRouterDelegate, 'Delegate type must match');
  return delegate as RRouterDelegate;
}