AnimatedDraggableOverlayWrapper constructor

const AnimatedDraggableOverlayWrapper({
  1. Key? key,
  2. required Widget child,
  3. bool snapToEdge = true,
  4. DraggableCorner initialCorner = DraggableCorner.bottomRight,
  5. Offset? initialPosition,
  6. double initialMargin = 16,
  7. VoidCallback? onTap,
  8. VoidCallback? onDragStart,
  9. ValueChanged<Offset>? onDragEnd,
  10. Duration snapAnimationDuration = const Duration(milliseconds: 350),
  11. Curve snapAnimationCurve = Curves.easeOutCubic,
  12. EdgeInsets childPadding = EdgeInsets.zero,
  13. double edgeMargin = 0,
  14. double? snapThreshold,
})

Implementation

const AnimatedDraggableOverlayWrapper({
  super.key,
  required this.child,
  this.snapToEdge = true,
  this.initialCorner = DraggableCorner.bottomRight,
  this.initialPosition,
  this.initialMargin = 16,
  this.onTap,
  this.onDragStart,
  this.onDragEnd,
  this.snapAnimationDuration = const Duration(milliseconds: 350),
  this.snapAnimationCurve = Curves.easeOutCubic,
  this.childPadding = EdgeInsets.zero,
  this.edgeMargin = 0,
  this.snapThreshold,
});