of static method

Implementation

static ActivityRouteState of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<_RouteScope>();
  if (scope == null) return ActivityRouter.of(context).state;
  return scope.state;
}