PositionedDraggable constructor
const
PositionedDraggable({
- Key? key,
- required Widget child,
- Offset initialPosition = Offset.zero,
- void onPositionChanged(
- Offset position
- bool enabled = true,
- DragDirection direction = DragDirection.both,
- 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,
});