of static method
Implementation
static RouteInfoProvider of(BuildContext context) {
final RouteInfoProvider? result =
context.dependOnInheritedWidgetOfExactType<RouteInfoProvider>();
assert(result != null, 'No RouteInfoProvider found in context');
return result!;
}