handleMovingFinished method

ReorderableEntity handleMovingFinished({
  1. required ReorderableEntity reorderableEntity,
})

Updates offset and order id of reorderableEntity faded in.

Should be called when the fade in was finished. Then the original offset and orderId are overwritten with the updated values of the entity.

Implementation

ReorderableEntity handleMovingFinished({
  required ReorderableEntity reorderableEntity,
}) {
  final updatedEntity = reorderableEntity.positionUpdated();
  _updateMaps(reorderableEntity: updatedEntity);

  return updatedEntity;
}