CustomDraggable constructor

const CustomDraggable({
  1. Key? key,
  2. required double initialX,
  3. required double initialY,
  4. required Widget child,
  5. double width = 100.0,
  6. double height = 150.0,
})

Constructor for the CustomDraggable class Takes the initial X and Y positions, the child widget, and optionally the width and height of the widget

Implementation

const CustomDraggable({
  super.key,
  required this.initialX,
  required this.initialY,
  required this.child,
  this.width = 100.0,
  this.height = 150.0,
});