DraggableResizable constructor
DraggableResizable({
- Key? key,
- required Widget child,
- required Size size,
- BoxConstraints? constraints,
- ValueSetter<
DragUpdate> ? onUpdate, - VoidCallback? onLayerTapped,
- VoidCallback? onEdit,
- VoidCallback? onDelete,
- 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);