of static method

RouteData of(
  1. BuildContext context
)

Looks up and returns the scoped instance

throws an error if it does not find it

Implementation

static RouteData of(BuildContext context) {
  return RouteDataScope.of(context).routeData;
}