RenderTapRegion constructor Null safety

RenderTapRegion(
  1. {TapRegionRegistry? registry,
  2. bool enabled = true,
  3. TapRegionCallback? onTapOutside,
  4. TapRegionCallback? onTapInside,
  5. Object? groupId,
  6. String? debugLabel}
)

Creates a RenderTapRegion.

Implementation

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