TouchWidget constructor

const TouchWidget({
  1. Key? key,
  2. required Widget child,
  3. TouchTap? onTap,
  4. double? pressedOpacity,
  5. double? padding,
  6. int? touchSpaced,
})

Implementation

const TouchWidget({
  Key? key,
  required this.child,
  this.onTap,
  this.pressedOpacity,
  this.padding,
  int? touchSpaced,
})  : this.onDoubleTap = null,
      this.onLongPressUp = null,
      this.touchSpaced = touchSpaced == null ? 1 : touchSpaced,
      super(key: key);