horizontalSwipeDetector method

Widget horizontalSwipeDetector({
  1. required dynamic onSwipe(
    1. DragUpdateDetails
    ),
  2. HitTestBehavior? behavior = HitTestBehavior.translucent,
})

Implementation

Widget horizontalSwipeDetector({
  required Function(DragUpdateDetails) onSwipe,
  HitTestBehavior? behavior = HitTestBehavior.translucent,
}) =>
    GestureDetector(
      behavior: behavior,
      onPanUpdate: onSwipe,
      child: this,
    );