SwipeOrPinchDetector constructor
const
SwipeOrPinchDetector({
- Key? key,
- HitTestBehavior? behavior,
- void onSwipe(
- SwipeDirection direction,
- Offset offset
- void onPinch(
- double? scale
- bool liveFeedback = false,
- bool pinch = false,
- @required Widget? child,
Implementation
const SwipeOrPinchDetector({
Key? key,
this.behavior,
this.onSwipe,
this.onPinch,
this.liveFeedback = false,
this.pinch = false,
@required this.child,
}) : super(key: key);