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