maybeOf static method

RouteRestorableState? maybeOf(
  1. BuildContext context
)

Implementation

static RouteRestorableState? maybeOf(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<_NRouterScope>();
  return scope?.state;
}