registerTapRegion method

  1. @override
void registerTapRegion(
  1. RenderTapRegion region
)
override

Register the given RenderTapRegion with the registry.

Implementation

@override
void registerTapRegion(RenderTapRegion region) {
  assert(_tapRegionDebug('Region $region registered.'));
  assert(!_registeredRegions.contains(region));
  _registeredRegions.add(region);
  if (region.groupId != null) {
    _groupIdToRegions[region.groupId] ??= <RenderTapRegion>{};
    _groupIdToRegions[region.groupId]!.add(region);
  }
}