TapRegion constructor

const TapRegion({
  1. Key? key,
  2. required Widget? child,
  3. bool enabled = true,
  4. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  5. TapRegionCallback? onTapOutside,
  6. TapRegionCallback? onTapInside,
  7. Object? groupId,
  8. bool consumeOutsideTaps = false,
  9. String? debugLabel,
})

Creates a const TapRegion.

The child argument is required.

Implementation

const TapRegion({
  super.key,
  required super.child,
  this.enabled = true,
  this.behavior = HitTestBehavior.deferToChild,
  this.onTapOutside,
  this.onTapInside,
  this.groupId,
  this.consumeOutsideTaps = false,
  String? debugLabel,
}) : debugLabel = kReleaseMode ? null : debugLabel;