of static method

The PersistentContext instance for the given BuildContext

Implementation

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