xGestureTouchContainer method

Widget xGestureTouchContainer(
  1. bool enable, {
  2. GestureTapCallback? onTap,
  3. GestureCancelCallback? onLongTap,
})

Implementation

Widget xGestureTouchContainer(bool enable,
    {GestureTapCallback? onTap, GestureCancelCallback? onLongTap}) {
  return enable
      ? GestureDetector(
          onTap: onTap,
          onLongPress: onLongTap,
          child: this,
        )
      : this;
}