of static method
The state from the closest instance of this class that encloses the given context.
Implementation
static DeferredPointerHandlerState of(BuildContext context) {
final inherited = context
.dependOnInheritedWidgetOfExactType<_InheritedDeferredPaintSurface>();
assert(inherited != null,
'DeferredPaintSurface was not found on this context.');
return inherited!.state;
}