of static method Null safety
- BuildContext context
The PersistentContext instance for the given BuildContext
Implementation
static PersistentContext of(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<PersistentContext>()!;
}