maybeOf method Null safety

TapRegionRegistry? maybeOf(
  1. BuildContext context
)

Allows finding of the nearest TapRegionRegistry, such as a RenderTapRegionSurface.

Implementation

static TapRegionRegistry? maybeOf(BuildContext context) {
  return context.findAncestorRenderObjectOfType<RenderTapRegionSurface>();
}