of static method

Implementation

static ScopedState? of(BuildContext context) {
  return context.findAncestorStateOfType<ScopedState>();
}