maybeOf static method

RouteState? maybeOf(
  1. BuildContext context
)

Implementation

static RouteState? maybeOf(BuildContext context) {
  return context.dependOnInheritedComponentOfExactType<InheritedRouteState>()?.state;
}