onPanEnd method

void onPanEnd(
  1. DragEndDetails details
)

Implementation

void onPanEnd(DragEndDetails details) {
  left.value = getValue(left.value, maxX);
  top.value = getValue(top.value, maxY);
  _adsorb();
}