of static method

Implementation

static InheritedShape of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<InheritedShape>()!;
}