of static method

Implementation

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