DraggableResizable constructor

DraggableResizable({
  1. Key? key,
  2. required Widget child,
  3. required Size size,
  4. VoidCallback? onTap,
  5. BoxConstraints? constraints,
  6. Offset initialPosition = Offset.zero,
  7. void onUpdate(
    1. DragUpdate,
    2. GlobalKey<State<StatefulWidget>>
    )?,
  8. ValueSetter<ScaleUpdateDetails>? onScaleUpdate,
  9. VoidCallback? onStart,
  10. VoidCallback? onEnd,
  11. bool canTransform = false,
})

Implementation

DraggableResizable({
  Key? key,
  required this.child,
  required this.size,
  this.onTap,
  BoxConstraints? constraints,
  this.initialPosition = Offset.zero,
  this.onUpdate,
  this.onScaleUpdate,
  this.onStart,
  this.onEnd,
  this.canTransform = false,
})  : constraints = constraints ?? BoxConstraints.loose(Size.infinite),
      super(key: key);