maybeOf static method
The state from the closest instance of this class that encloses the given context, or null if there is no instance in the tree.
Implementation
static DeferredPointerHandlerState? maybeOf(BuildContext context) {
final inherited = context
.dependOnInheritedWidgetOfExactType<_InheritedDeferredPaintSurface>();
return inherited?.state;
}