handleDragEnd method
Implementation
List<ReorderUpdateEntity>? handleDragEnd() {
if (super.draggedEntity == null) return null;
final oldIndex = super.draggedEntity!.originalOrderId;
final newIndex = super.draggedEntity!.updatedOrderId;
super.draggedEntity = null;
if (oldIndex == newIndex) return null;
final orderUpdateEntities = _getOrderUpdateEntities(
oldIndex: oldIndex,
newIndex: newIndex,
);
updateToActualPositions();
return orderUpdateEntities;
}