Tappable constructor
const
Tappable({
- Key? key,
- double? pressOpacity = 0.7,
- double? pressScale,
- HitTestBehavior behavior = HitTestBehavior.opaque,
- LongPressCallback? onLongPress,
- Duration duration = const Duration(milliseconds: 300),
- FutureTappableCallback? onTap,
- bool useMouseCursor = true,
- 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);