TapRegion constructor Null safety

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

Creates a const TapRegion.

The child argument is required.

Implementation

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