RenderTapRegion constructor

RenderTapRegion({
  1. TapRegionRegistry? registry,
  2. bool enabled = true,
  3. bool consumeOutsideTaps = false,
  4. TapRegionCallback? onTapOutside,
  5. TapRegionCallback? onTapInside,
  6. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  7. Object? groupId,
  8. String? debugLabel,
})

Creates a RenderTapRegion.

Implementation

RenderTapRegion({
  TapRegionRegistry? registry,
  bool enabled = true,
  bool consumeOutsideTaps = false,
  this.onTapOutside,
  this.onTapInside,
  super.behavior = HitTestBehavior.deferToChild,
  Object? groupId,
  String? debugLabel,
})  : _registry = registry,
      _enabled = enabled,
      _consumeOutsideTaps = consumeOutsideTaps,
      _groupId = groupId,
      debugLabel = kReleaseMode ? null : debugLabel;