SwipeDetector constructor

const SwipeDetector({
  1. Key? key,
  2. required Widget child,
  3. required void onSwipe(
    1. bool,
    2. bool upToDownSwiped
    ),
  4. double threshold = 10.0,
})

Implementation

const SwipeDetector(
    {Key? key,
    required this.child,
    required this.onSwipe,
    this.threshold = 10.0})
    : super(key: key);