SwipeOrPinchDetector constructor

const SwipeOrPinchDetector({
  1. Key? key,
  2. HitTestBehavior? behavior,
  3. void onSwipe(
    1. SwipeDirection direction,
    2. Offset offset
    )?,
  4. void onPinch(
    1. double? scale
    )?,
  5. bool liveFeedback = false,
  6. bool pinch = false,
  7. @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);