handlePanEnd method

void handlePanEnd(
  1. DragEndDetails details
)

Implementation

void handlePanEnd(DragEndDetails details) {
  Offset newPos = _checkBounds(Offset.zero, stageBloc.state.bounds);

  if (!mounted) return;
  setState(() {
    _node.position = newPos;
  });
}