GestureAnimatedSlot<T> constructor
const
GestureAnimatedSlot<T>({ - Key? key,
- required Signal<T> connect,
- required Widget to(
- BuildContext context,
- T value
),
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- VoidCallback? onLongPress,
- double pressedScale = 0.95,
- double pressedOpacity = 1.0,
- Duration pressDuration = const Duration(milliseconds: 100),
- Curve pressCurve = Curves.easeInOut,
- 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,
});