registry property Null safety

TapRegionRegistry? registry

The registry that this RenderTapRegion should register with.

If the registry is null, then this region will not be registered anywhere, and will not do any tap detection.

A RenderTapRegionSurface is a TapRegionRegistry.

Implementation

TapRegionRegistry? get registry => _registry;
void registry=(TapRegionRegistry? value)

Implementation

set registry(TapRegionRegistry? value) {
  if (_registry != value) {
    if (_isRegistered) {
      _registry!.unregisterTapRegion(this);
      _isRegistered = false;
    }
    _registry = value;
    markNeedsLayout();
  }
}