ElTapOutSide constructor
const
ElTapOutSide({
- Key? key,
- required Widget child,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- bool enabled = true,
- Object? groupId,
- TapRegionCallback? onPointerDown,
- TapRegionUpCallback? onPointerUp,
- TapRegionCallback? onTapDown,
- TapRegionUpCallback? onTapUp,
- VoidCallback? onTap,
- 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,
});