GestureAnimatedSlot<T> constructor

const GestureAnimatedSlot<T>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required Widget to(
    1. BuildContext context,
    2. T value
    ),
  4. VoidCallback? onTap,
  5. VoidCallback? onDoubleTap,
  6. VoidCallback? onLongPress,
  7. double pressedScale = 0.95,
  8. double pressedOpacity = 1.0,
  9. Duration pressDuration = const Duration(milliseconds: 100),
  10. Curve pressCurve = Curves.easeInOut,
  11. HitTestBehavior behavior = HitTestBehavior.opaque,
})

Implementation

const GestureAnimatedSlot({
  super.key,
  required this.connect,
  required this.to,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.pressedScale = 0.95,
  this.pressedOpacity = 1.0,
  this.pressDuration = const Duration(milliseconds: 100),
  this.pressCurve = Curves.easeInOut,
  this.behavior = HitTestBehavior.opaque,
});