ElasticButton constructor

const ElasticButton({
  1. Key? key,
  2. bool withOpacity = false,
  3. bool useCache = true,
  4. Alignment alignment = Alignment.center,
  5. double scaleCoefficient = 0.95,
  6. Widget? child,
  7. GestureTapDownCallback? onTapDown,
  8. GestureTapUpCallback? onTapUp,
  9. GestureTapCallback? onTap,
  10. GestureTapCancelCallback? onTapCancel,
  11. GestureTapDownCallback? onSecondaryTapDown,
  12. GestureTapUpCallback? onSecondaryTapUp,
  13. GestureTapCancelCallback? onSecondaryTapCancel,
  14. GestureTapCallback? onDoubleTap,
  15. GestureLongPressCallback? onLongPress,
  16. GestureLongPressStartCallback? onLongPressStart,
  17. GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  18. GestureLongPressUpCallback? onLongPressUp,
  19. GestureLongPressEndCallback? onLongPressEnd,
  20. GestureDragDownCallback? onVerticalDragDown,
  21. GestureDragStartCallback? onVerticalDragStart,
  22. GestureDragUpdateCallback? onVerticalDragUpdate,
  23. GestureDragEndCallback? onVerticalDragEnd,
  24. GestureDragCancelCallback? onVerticalDragCancel,
  25. GestureDragDownCallback? onHorizontalDragDown,
  26. GestureDragStartCallback? onHorizontalDragStart,
  27. GestureDragUpdateCallback? onHorizontalDragUpdate,
  28. GestureDragEndCallback? onHorizontalDragEnd,
  29. GestureDragCancelCallback? onHorizontalDragCancel,
  30. GestureForcePressStartCallback? onForcePressStart,
  31. GestureForcePressPeakCallback? onForcePressPeak,
  32. GestureForcePressUpdateCallback? onForcePressUpdate,
  33. GestureForcePressEndCallback? onForcePressEnd,
  34. GestureDragDownCallback? onPanDown,
  35. GestureDragStartCallback? onPanStart,
  36. GestureDragUpdateCallback? onPanUpdate,
  37. GestureDragEndCallback? onPanEnd,
  38. GestureDragCancelCallback? onPanCancel,
  39. GestureScaleStartCallback? onScaleStart,
  40. GestureScaleUpdateCallback? onScaleUpdate,
  41. GestureScaleEndCallback? onScaleEnd,
})

Implementation

const ElasticButton({
  super.key,
  this.withOpacity = false,
  this.useCache = true,
  this.alignment = Alignment.center,
  this.scaleCoefficient = 0.95,
  this.child,
  this.onTapDown,
  this.onTapUp,
  this.onTap,
  this.onTapCancel,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onLongPressStart,
  this.onLongPressMoveUpdate,
  this.onLongPressUp,
  this.onLongPressEnd,
  this.onVerticalDragDown,
  this.onVerticalDragStart,
  this.onVerticalDragUpdate,
  this.onVerticalDragEnd,
  this.onVerticalDragCancel,
  this.onHorizontalDragDown,
  this.onHorizontalDragStart,
  this.onHorizontalDragUpdate,
  this.onHorizontalDragEnd,
  this.onHorizontalDragCancel,
  this.onForcePressStart,
  this.onForcePressPeak,
  this.onForcePressUpdate,
  this.onForcePressEnd,
  this.onPanDown,
  this.onPanStart,
  this.onPanUpdate,
  this.onPanEnd,
  this.onPanCancel,
  this.onScaleStart,
  this.onScaleUpdate,
  this.onScaleEnd,
});