DraggableResizable constructor

DraggableResizable({
  1. Key? key,
  2. required Widget child,
  3. required Size size,
  4. BoxConstraints? constraints,
  5. ValueSetter<DragUpdate>? onUpdate,
  6. VoidCallback? onLayerTapped,
  7. VoidCallback? onEdit,
  8. VoidCallback? onDelete,
  9. bool canTransform = false,
})

A widget which allows a user to drag and resize the provided child.

Implementation

DraggableResizable({
  Key? key,
  required this.child,
  required this.size,
  BoxConstraints? constraints,
  this.onUpdate,
  this.onLayerTapped,
  this.onEdit,
  this.onDelete,
  this.canTransform = false,
})  : constraints = constraints ?? BoxConstraints.loose(Size.infinite),
      super(key: key);