onReorderFinished property

ReorderFinishedCallback<E> onReorderFinished
final

Called in response to when the dragged item has been released and animated to its final destination. Here you should update the underlying data in your model/bloc/database etc.

The item parameter of the callback is the item that has been reordered from index to index. The data parameter represents the new data with the item already being correctly reordered.

Note that this will also be called when the item didn't change its index in the list (i.e. the user canceled the reorder).

This parameter should not be null.

Implementation

final ReorderFinishedCallback<E> onReorderFinished;