ElTapOutSide constructor

const ElTapOutSide({
  1. Key? key,
  2. required Widget child,
  3. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  4. bool enabled = true,
  5. Object? groupId,
  6. TapRegionCallback? onPointerDown,
  7. TapRegionUpCallback? onPointerUp,
  8. TapRegionCallback? onTapDown,
  9. TapRegionUpCallback? onTapUp,
  10. VoidCallback? onTap,
  11. VoidCallback? onCancel,
})

点击外部事件小部件,这只是对 TapRegion 进行一个浅包装

Implementation

const ElTapOutSide({
  super.key,
  required this.child,
  this.behavior = HitTestBehavior.deferToChild,
  this.enabled = true,
  this.groupId,
  this.onPointerDown,
  this.onPointerUp,
  this.onTapDown,
  this.onTapUp,
  this.onTap,
  this.onCancel,
});