addPermutation method
Adds a permutation to the list.
The permutation specifies the original and destination indices of an item to be reordered within the list.
Parameters:
itemKey: The unique key of the item being reordered.srcIndex: The original index of the item.destIndex: The new index to which the item will be moved.
Implementation
void addPermutation({
required Key itemKey,
required int srcIndex,
required int destIndex,
}) =>
_add(Permutation(
itemKey: itemKey,
from: srcIndex,
to: destIndex,
));