of static method

RouteData of(
  1. BuildContext context
)

Implementation

static RouteData of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<_RouteStateScope>()?.data ??
    (throw StateError('No Follow route above this context'));