Tappable constructor

const Tappable({
  1. Key? key,
  2. double? pressOpacity = 0.7,
  3. double? pressScale,
  4. HitTestBehavior behavior = HitTestBehavior.opaque,
  5. LongPressCallback? onLongPress,
  6. Duration duration = const Duration(milliseconds: 300),
  7. FutureTappableCallback? onTap,
  8. bool useMouseCursor = true,
  9. Widget? child,
})

Implementation

const Tappable(
    {Key? key,
    this.pressOpacity = 0.7,
    this.pressScale,
    this.behavior = HitTestBehavior.opaque,
    this.onLongPress,
    this.duration = const Duration(milliseconds: 300),
    this.onTap,
    this.useMouseCursor = true,
    this.child})
    : super(key: key);