of static method

Implementation

static InheritRouteWidget of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType()!;
}