onResizeBR method

dynamic onResizeBR(
  1. DragUpdateDetails details
)

Implementation

onResizeBR(DragUpdateDetails details) {
  if (!widget.model.resizeable) return;
  if (((width ?? 0) + details.delta.dx) < minimumWidth) return;
  if (((height ?? 0) + details.delta.dy) < minimumHeight) return;

  setState(() {
    width = (width ?? 0) + details.delta.dx;
    height = (height ?? 0) + details.delta.dy;

    lastDx = dx;
    lastDy = dy;

    lastWidth = width;
    lastHeight = height;
  });
}