endDrag method

void endDrag(
  1. DragEndDetails details
)

Implementation

void endDrag(DragEndDetails details) {
  if (updated) {
    if (autoSwipped) {
      if (diff > 0) {
        currentHeight = maxHeight;
        if (onShow != null) {
          onShow!();
        }
      } else {
        currentHeight = minHeight;
        if (onHide != null) {
          onHide!();
        }
      }
    }
    positionY = -1;
    updated = false;
    update();
  }
}