TapRegion constructor
- Key? key,
- required Widget? child,
- bool enabled = true,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- TapRegionCallback? onTapOutside,
- TapRegionCallback? onTapInside,
- Object? groupId,
- bool consumeOutsideTaps = false,
- 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;