of static method

Implementation

static InheritedCounter? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<InheritedCounter>();
}