of static method

Implementation

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