RenderTapRegion constructor

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

Creates a RenderTapRegion.

Implementation

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