PositionedDraggable constructor

const PositionedDraggable({
  1. Key? key,
  2. required Widget child,
  3. Offset initialPosition = Offset.zero,
  4. void onPositionChanged(
    1. Offset position
    )?,
  5. bool enabled = true,
  6. DragDirection direction = DragDirection.both,
  7. DragConstraints? constraints,
})

Creates a PositionedDraggable widget.

Implementation

const PositionedDraggable({
  super.key,
  required this.child,
  this.initialPosition = Offset.zero,
  this.onPositionChanged,
  this.enabled = true,
  this.direction = DragDirection.both,
  this.constraints,
});