resizeDelta method

void resizeDelta(
  1. Offset deltaSize
)

Changes the component's size by deltaSize.

You cannot change its size to smaller than minSize defined on the component.

Implementation

void resizeDelta(Offset deltaSize) {
  var tempSize = size + deltaSize;
  if (tempSize.width < minSize.width) {
    tempSize = Size(minSize.width, tempSize.height);
  }
  if (tempSize.height < minSize.height) {
    tempSize = Size(tempSize.width, minSize.height);
  }
  size = tempSize;
  notifyListeners();
}