updateWindowHeight method

void updateWindowHeight(
  1. DragUpdateDetails detail
)

Implementation

void updateWindowHeight(DragUpdateDetails detail) {
  windowHeight -= detail.delta.dy;
  if (windowHeight <= minWindowHeight) {
    windowHeight = minWindowHeight;
  }
  if (windowHeight >= maxWindowHeight) {
    windowHeight = maxWindowHeight;
  }
  setState(() {});
}