of static method

The state from the closest instance of this class that encloses the given context.

Implementation

static DeferredPointerHandlerState of(BuildContext context) {
  final DeferredPointerHandlerState? result = maybeOf(context);
  assert(
      result != null, 'DeferredPaintSurface was not found on this context.');
  return result!;
}