endDrag method
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();
}
}